Created
August 11, 2021 16:50
-
-
Save sketchpunk/0259b1903827e336486d1faeed4c951f to your computer and use it in GitHub Desktop.
VSCode : Build Task with ctrl+shift+b
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create a folder called .vscode at the root of the project, add this file to it. | |
ctrl+shift-b will rust the quickstart script. | |
If you run the shortcut again, it will prompt you to terminate or restart the task. You will need to use a mouse to select the options. | |
---------- | |
::FUTURE:: | |
https://github.com/microsoft/vscode/pull/117129 | |
instancePolicy doesn't work yet. Waiting on review/merge. | |
This would allow to automatically terminate/restart previous task without a prompt. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"type" : "npm", | |
"script" : "quickstart", | |
"label" : "npm: quickstart", | |
"detail" : "run-s build:modern start:server", | |
"group" : { "kind": "build", "isDefault": true }, | |
"runOptions" : { "instanceLimit": 1, "instancePolicy": "terminateOldest" } | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment