19666

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

I am using Don Jayamanne's Python extension and it is working well. The only issue I have is for every project I work on, I have to copy the <strong>\.vscode\launch.json</strong> file. I was wondering if there is a way to place that file somewhere globally so the settings are applied to all my projects. Something similar to how the global <strong>settings.json</strong> works for user settings.

In other words I am looking for a way to avoid having to copy <strong>\.vscode\launch.json</strong> to every folder I store and write python code in.

Answer1:

Yes, it is possible - you need to put the requisite launch config directly in your user settings file, as described here.

From the linked page:

... 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" } ] }

Recommend

  • Java logging across multiple threads
  • $_POST as a function parameter [duplicate]
  • Ext JS, change grid column configs default values globally
  • How can I sum two different columns at once where one contains Decimal objects in pandas?
  • Capturing HTML Text Input Key press after key has been applied?
  • How to have a website splash screen (web app)
  • Cordova Apache wrong module path
  • How gzip file gets stored in HDFS
  • Does Apportable support to build library binary (.a/.so)?
  • Updating Dojo provide
  • Defined variables not working in javascript files when I use getScript
  • How can I display the parent menu item's description using Wordpress walkers?
  • how to avoid repetitive constructor in children
  • Visual Studio 2010 debugger build correctly - compiler pdb and linker pdb not in synch?
  • How to get Eclipse Oxygen to run on Java 9
  • Do I need to reset a Perl hash index?
  • MailKit: The IMAP server replied to the 'EXAMINE' command with a 'BAD' response
  • Spark fat jar to run multiple versions on YARN
  • Paperclip, set path outside of rails root folder
  • Email format validation in mvc3 view
  • How do I change content of ComboFieldEditor?
  • C# - Is there a limit to the size of an httpWebRequest stream?
  • Azure Cloud Service Web Role web pages do not load
  • VS2008 Enable C++ Exception with SEH
  • How to add date and time under each post in guestbook in google app engine
  • How to recover from a Spring Social ExpiredAuthorizationException
  • ILMerge & Keep Assembly Name
  • ActionScript 2 vs ActionScript 3 performance
  • Weird JavaScript statement, what does it mean?
  • Large data - storage and query
  • Do I've to free mysql result after storing it?
  • Why winpcap requires both .lib and .dll to run?
  • WOWZA + RTMP + HTML5 Playback?
  • XCode can't find symbols for a specific iOS library/framework project
  • json Serialization in asp
  • Proper folder structure for lots of source files
  • SQL merge duplicate rows and join values that are different
  • Load html files in TinyMce
  • coudnt use logback because of log4j
  • Append folder name and increment by 1 using batch script