-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Global launch.json option #18401
Comments
@kutsan currently it is not possible to have one global launch.json file which would be used everywhere, but what works is to add a "launch" object inside your user settings (preferences > user settings). This way it will be shared across all your workspaces "launch": {
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${file}",
"cwd": "${workspaceRoot}",
"runtimeExecutable": "/usr/local/bin/node"
}
]
} |
@isidorn this is a feature that we mention in the release notes (and the doc). |
@weinand makes sense, we should market it proper |
@weinand Where is it in the docs? Ive looked here: https://code.visualstudio.com/docs/getstarted/settings and here: https://code.visualstudio.com/docs/editor/debugging but could not fund anything. |
@isidorn please add this to the generic debugger doc. |
Also the "launch" tag is not recognized by IntelliSense in the settings.. this is a bug I guess. Ill make a report. |
I have added this section to the debugging doc |
@isidorn thanks for the very quick fix! It looks nice, but something is still not clear to me: |
And I suggest to include an inline example in the documentation (instead of a link to an issue). |
I have added an example inline in the documentation and I have clarified that if a launch.json is present in the workspace the global launch confiugration is ignored. |
I have this file and can use my every project. I just don't want to copy them all the time. VSCode generates .vscode/launch.json file every time at project root, this is no good for me. Is it possible to have just one static and default launch config file? Or a option to avoid this copying problem?
The text was updated successfully, but these errors were encountered: