Skip to content

vscode integration #192

Closed Answered by SergioGasquez
jrmurdoch asked this question in Q&A
Discussion options

You must be logged in to vote

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:

  • From the Command Palette (Ctrl-Shift-P or Cmd-Shift-P) run the Tasks: Run Test Task command
  • With Ctrl-Shift-, or Cmd-Shift-,
  • From the Command Palette (Ctrl-Shift-P or Cmd-Shift-P) run the Tasks: Run Task command and select Build & Flash.
  • From UI: T…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by SergioGasquez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants