Is it possible to have a global launch.json file?

I am using the Don Jayamanne Python extension and it works well. The only problem I have is for every project I am working on, I need to copy the \ .vscode \ launch.json file . I was wondering if there is a way to place this file somewhere on a global scale so that the settings apply to all my projects. Something similar to how global settings.json work for user settings.

In other words, I'm looking for a way to avoid copying \. vscode \ launch.json to every folder in which I store and write python code.

+2
configuration visual-studio-code vscode-extensions
source share
1 answer

Yes, it is possible - you need to put the necessary launch configuration directly into the user settings file, as described here .

On the linked page:

@kutsan it is currently not possible to have one global launch.json file that will be used everywhere, but what works is to add a β€œlaunch” object to your user preferences (settings> user preferences). Thus, it will be used in all your workspaces. Example:

"launch": { "version": "0.2.0", "configurations": [ { "type": "node", "request": "launch", "name": "Launch Program", "program": "${file}", "cwd": "${workspaceRoot}", "runtimeExecutable": "/usr/local/bin/node" } ] } 
+4
source share

All Articles