vscode integration #192
-
Any idea how to intergrade espflash into vscode? I'm working with the ESP32-C3 and can flash with command line using "cargo espflash --monitor COM8" although would be good if this could be done through vscode, and optionally launch the debugger. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can integrate that using PlatformIO IDE. Follow this link for more information https://randomnerdtutorials.com/vs-code-platformio-ide-esp32-esp8266-arduino/ |
Beta Was this translation helpful? Give feedback.
-
You could create a task in VS Code that uploads your code: {
"version": "2.0.0",
"tasks": [
{
"label": "Build & Flash",
"type": "shell",
"command": "cargo espflash --monitor COM8",
"options": {
"cwd": "${workspaceFolder}"
},
"group": {
"kind": "test",
"isDefault": true
}
},
],
} In this example, since the task is set as the default test task, it could be executed:
Additionally, if you want to modify arguments, you can use input variables. Regarding debugging, I haven't done any testing but there is an attribute of |
Beta Was this translation helpful? Give feedback.
You could create a task in VS Code that uploads your code:
In this example, since the task is set as the default test task, it could be executed:
Ctrl-Shift-P
orCmd-Shift-P
) run theTasks: Run Test Task
commandCtrl-Shift-,
orCmd-Shift-,
Ctrl-Shift-P
orCmd-Shift-P
) run theTasks: Run Task
command and selectBuild & Flash
.