Making VS Code work the way we like

File > Preferences > Keyboard shortcuts Transform to Uppercase ctrl + shift + u Transform to Lowercase ctrl + shift + l Use tabs not spaces Test editor > Editor: Insert spaces = OFF Text editor > Detect Indentation = OFF Turn off auto closing Text Editor > Editor: Auto Closing Brackets = NEVER Text […]

Read More

Debugging with Visual Studio

Installing debugger VS Code has a built-in debugger, its setup documentation is here. Apparently some people use it successfully for Espressif chips (launch.json “type”: “gdb”). Espressif have a dedicated VS Code extension for debugging which is likely the better choice (launch.json “type”: “espidf”): Setup ESP-IDF More details on how to set it up How to […]

Read More

Creating a new project

Resources https://github.com/espressif/vscode-esp-idf-extension/blob/master/docs/tutorial/basic_use.md NOTE: The esp-idf build system does not support spaces in paths to projects Create an example project in Visual Studio Menu > View > Command Palette > Type: ESP-IDF: Show Examples ProjectsChoose Use current ESP-IDF (/path/to/esp-idf).All of the example projects will be shown. Select the project you want and press the “Creat project […]

Read More

Installing Visual Studio Code

Installing You don’t have to have installed EDP-IDF first, the VS plugin can do it for you. Install Visual Studio Code Install ESP-IDF Visual Studio Code Extension from: https://marketplace.visualstudio.com/items?itemName=espressif.esp-idf-extension Visual Studio Code > Menu > View > Command Palette > type: configure esp-idf extensionChoose the ESP-IDF: Configure ESP-IDF extension option. If you don’t have ESP-IDF […]

Read More