One of the topics that confuse our readers a lot is the concept of Workspace. It may be tough for beginners to understand how everything works. One of the biggest disadvantages of using VS Code is the learning curve. Both extensions were already covered in our blog ( PlatformIO, PyMakr). You can use VS Code to program your boards with the Arduino core using the PaltformIO extension, or with MicroPython firmware using the PyMakr extension. Using VS Code is one of the best choices for advanced (or even simple) ESP32 and ESP8266 projects. And select the project folder you want to add. You need to go to File > Add Folder to Workspace. You can also add existing folders to the current workspace. This allows you to automatically enable the right extensions for the project you’re working on ( PlatformIO for Arduino core projects, and PyMakr for MicroPython projects). This is useful if you interchangeably work with MicroPython or Arduino core projects. You can selectively enable or disable extensions for a specific workspace.Any other folder opened in VS Code outside that workspace won’t have the same settings. For example, a workspace can have configured settings that only applies to its folders (or to the folder itself, in the case of single-folder workspaces). A workspace is like a folder with extra capabilities.It allows you to open/list on the File Explorer all folders inside that workspace without the need to open a single folder at a time.The workspace is the project folder itself. In the following example, I created a new PlatformIO project called ESP32 Web Server. In most cases, you work with only one project folder at a time-in this scenario, the workspace is your project’s single root folder.įor example, create a new PlatformIO project or open a new project folder. If you want to learn more, you can read the workspaces documentation.Ī workspace is simply a collection of one or more project folders opened in a VS Code window (File Explorer). We’ll try to keep this concept as simple as possible and applied to our ESP32 and ESP8266 projects. But, you’ll see that it is a straightforward and useful concept to organize your projects. The workspace concept might be difficult to understand, mainly when you’re getting started with VS Code. Upload a Project in a Multi-Root Workspace.Throughout this tutorial, we’ll cover the following topics: MicroPython: Program ESP32/ESP8266 using VS Code and Pymakr.You can also use VS Code to program your boards with MicroPython firmware: Getting Started with VS Code and PlatformIO IDE for ESP32 and ESP8266.To get familiar with VS Code with the ESP32 and ESP8266, follow the next tutorial first:
0 Comments
Leave a Reply. |
AuthorAmber ArchivesCategories |