Global launch.json option #18401

Closed
kutsan opened this Issue Jan 11, 2017 · 4 comments

Projects

None yet

5 participants

@kutsan
kutsan commented Jan 11, 2017

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?

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

launch.json

  • VSCode Version: 1.8.1
  • OS Version: macOS 10.12.2
@bpasero
Member
bpasero commented Jan 13, 2017
@isidorn
Contributor
isidorn commented Jan 13, 2017

@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
Example:

"launch": {
		"version": "0.2.0",
		"configurations": [
			{
			"type": "node",
			"request": "launch",
			"name": "Launch Program",
			"program": "${file}",
			"cwd": "${workspaceRoot}",
			"runtimeExecutable": "/usr/local/bin/node"
			}
		]
	}
@isidorn isidorn closed this Jan 13, 2017
@isidorn isidorn added this to the January 2017 milestone Jan 13, 2017
@weinand
Member
weinand commented Jan 13, 2017

@isidorn this is a feature that we mention in the release notes (and the doc).

@isidorn
Contributor
isidorn commented Jan 13, 2017

@weinand makes sense, we should market it proper

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment