I just start to use vscode
in linux. I know that the build configuration are set in tasks.json
. But where does this file locate?
I tried Ctrl-Shift-P
then
tasks
, no commands matching.
build
, no commands matching.
I also tried to find it in ~/.vscode
folder, nothing here!
Is there a way to find / open this file?
Workspace or folder specific tasks are configured from the tasks.json file in the .vscode folder for a workspace. Extensions can also contribute tasks using a Task Provider, and these contributed tasks can add workspace-specific configurations defined in the tasks.json file.
This is a simple extension to Visual Studio for displaying and manipulating JSON data. After installation it is available in the main menu: Tools -> JSON Viewer.
In Visual Studio Code, use shortcut Ctrl + Shift + P to open the Command Palette and type Open launch. json . And it will open the launch.
DANGER! All of this has changed. Current Microsoft docs on this topic are NOT consistent. Note the version warning at the top of this:
https://code.visualstudio.com/docs/editor/tasks
Note the conflicts between this:
https://docs.microsoft.com/en-us/visualstudio/ide/customize-build-and-debug-tasks-in-visual-studio?view=vs-2017
and this:
https://code.visualstudio.com/docs/languages/cpp
I cannot get a straight answer on what works now (12MAR2019) to save my life, but I can tell you that none of the permutations I've tried, namely:
{., .vs, .vscode} / { tasks.json, tasks.vs.json}
are working for me. It really drives me crazy that they changed this crap without updating ALL of the pertinent documentation, and the backward-compatibility "support" is just making things MUCH WORSE.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With