vscode-tasks

Create multiple terminals and run commands in VSCode

╄→гoц情女王★ 提交于 2020-04-13 14:52:23
问题 I'm on a Mac 💻. I'm trying to explore a way to create 4 Terminals as soon as I dbl-clicked on my workspace file. I've tried to get one working, but I seem stuck { "folders": [ { "path": "/Users/bheng/Sites/laravel/project" } ], "settings": { "workbench.action.terminal.focus": true, "terminal.integrated.shell.osx": "ls", "terminal.integrated.shellArgs.osx": [ "ls -lrt" ] }, "extensions": {} } My goal is to open 4 Terminals Terminal1 : run 'npm run watch' Terminal2 : run 'ls -lrt' Terminal3 :

in vscode how can I quickly generate a new file with datetime in the name?

故事扮演 提交于 2020-04-07 09:19:24
问题 I'm trying to be able to have a keyboard shortcut that creates a new file with the datetime as the prefix and some additional text that I enter. I know there is a shortcut for generating a new file and I've seen snippets and extensions used to insert datetime into the editor but those extensions don't seem to work in the new filename dialog box. Thanks! 回答1: Try this. I'm using the bash shell so you may have to modify the shell commands for your shell. In tasks.json: { "version": "2.0.0",

in vscode how can I quickly generate a new file with datetime in the name?

旧巷老猫 提交于 2020-04-07 09:18:14
问题 I'm trying to be able to have a keyboard shortcut that creates a new file with the datetime as the prefix and some additional text that I enter. I know there is a shortcut for generating a new file and I've seen snippets and extensions used to insert datetime into the editor but those extensions don't seem to work in the new filename dialog box. Thanks! 回答1: Try this. I'm using the bash shell so you may have to modify the shell commands for your shell. In tasks.json: { "version": "2.0.0",

in vscode how can I quickly generate a new file with datetime in the name?

醉酒当歌 提交于 2020-04-07 09:10:58
问题 I'm trying to be able to have a keyboard shortcut that creates a new file with the datetime as the prefix and some additional text that I enter. I know there is a shortcut for generating a new file and I've seen snippets and extensions used to insert datetime into the editor but those extensions don't seem to work in the new filename dialog box. Thanks! 回答1: Try this. I'm using the bash shell so you may have to modify the shell commands for your shell. In tasks.json: { "version": "2.0.0",

in vscode how can I quickly generate a new file with datetime in the name?

为君一笑 提交于 2020-04-07 09:10:35
问题 I'm trying to be able to have a keyboard shortcut that creates a new file with the datetime as the prefix and some additional text that I enter. I know there is a shortcut for generating a new file and I've seen snippets and extensions used to insert datetime into the editor but those extensions don't seem to work in the new filename dialog box. Thanks! 回答1: Try this. I'm using the bash shell so you may have to modify the shell commands for your shell. In tasks.json: { "version": "2.0.0",

How to get rid of “Terminal will be reused by tasks, press any key to close it.” behaviour?

人走茶凉 提交于 2020-03-17 10:15:31
问题 Upon executing a task (cargo build in this case), the following appears in the VSCode terminal: > Executing task: cargo build < (output of the task here) Terminal will be reused by tasks, press any key to close it. Annoyingly, this takes me out of the normal terminal and then I have to acquire focus of the terminal window and press a key to get back. And when I do so, the output of cargo build disappears. How do I stop this behaviour? How do I get rid of the first and last lines of text? 回答1:

How to get rid of “Terminal will be reused by tasks, press any key to close it.” behaviour?

空扰寡人 提交于 2020-03-17 10:11:25
问题 Upon executing a task (cargo build in this case), the following appears in the VSCode terminal: > Executing task: cargo build < (output of the task here) Terminal will be reused by tasks, press any key to close it. Annoyingly, this takes me out of the normal terminal and then I have to acquire focus of the terminal window and press a key to get back. And when I do so, the output of cargo build disappears. How do I stop this behaviour? How do I get rid of the first and last lines of text? 回答1:

how to completely remove vs-code setting?

。_饼干妹妹 提交于 2020-02-27 22:31:52
问题 After I uninstalled vs-code the popup message appeared: Your extensions and settings will not be removed. Now I want to remove all of the vs-code settings and install it as a new user. How can I do this? 回答1: If you want to completely delete settings, go to %UserFolder%\AppData\Roaming\Code and delete the whole folder. Then uninstall and install it again. If you want to delete all extensions too, delete the extensions folder on %UserFolder%\.vscode . 回答2: Another option is to download a free

how to completely remove vs-code setting?

社会主义新天地 提交于 2020-02-27 22:31:10
问题 After I uninstalled vs-code the popup message appeared: Your extensions and settings will not be removed. Now I want to remove all of the vs-code settings and install it as a new user. How can I do this? 回答1: If you want to completely delete settings, go to %UserFolder%\AppData\Roaming\Code and delete the whole folder. Then uninstall and install it again. If you want to delete all extensions too, delete the extensions folder on %UserFolder%\.vscode . 回答2: Another option is to download a free

Create tasks in Visual Studio Code per user

感情迁移 提交于 2020-02-24 05:28:09
问题 When I created a Node task for Visual Studio Code it created a tasks.json file inside the .settings folder for the folder that you have open (node-app in this case as shown in the image below). ie: it creates a task per folder. { "version": "0.1.0", "command": "node", "isShellCommand": true, "args": ["${file}"] } My question is how do you create a task per user rather than a project based task so that I can execute the node code from any folder rather that having to create the same task for