#author("2019-01-27T18:46:22+09:00","default:ryuichi","ryuichi")
#author("2019-01-27T18:50:17+09:00","default:ryuichi","ryuichi")
* プロジェクトごとのlaunch.jsonでなくグローバルに設定する [#p9721345]
** 問題 [#z953acab]
- launch.jsonはプロジェクトごとに作られる。したがって、'''ファイルパスは プロジェクトフォルダー/.vscode/launch.json''' のようになる。
- 各プロジェクトごとでなく、すべてのプロジェクト(グローバル)に設定したい。
** 方法 [#c58683d2]
- 以下のようにUser Settings(settings.json)にlaunch.jsonの内容を記述する。
- "launch"をキーにして、"configurations"と"compounds"は必須のようだ?この例ではenvを指定して、環境変数BROWSERにChromeを設定している。
"launch": {
"configurations": [],
"compounds": [],
"env": {
"BROWSER": "Chrome"
}
}
** 参考 [#xcf08ffe]
- https://stackoverflow.com/questions/36868021/is-it-possible-to-have-a-global-launch-json-file?noredirect=1&lq=1
- https://github.com/Microsoft/vscode/issues/18401#issuecomment-272400316