Skip to content

Instantly share code, notes, and snippets.

@maestrow
Last active July 23, 2019 15:33
Show Gist options
  • Save maestrow/9b3960e98a306380ac32bca882340ee5 to your computer and use it in GitHub Desktop.
Save maestrow/9b3960e98a306380ac32bca882340ee5 to your computer and use it in GitHub Desktop.
VS Code

Portable settings

  • --extensions-dir <dir>
  • --user-data-dir <dir>

source: https://code.visualstudio.com/docs/editor/command-line#_advanced-cli-options

See also:

Extensions location

Extensions are installed in a per user extensions folder. Depending on your platform, the location is in the following folder:

Windows %USERPROFILE%.vscode\extensions macOS ~/.vscode/extensions Linux ~/.vscode/extensions You can change the location by launching VS Code with the --extensions-dir <dir> command-line option.

source: https://code.visualstudio.com/docs/editor/extension-gallery

Settings.json location

Use code --user-data-dir /path/to/user/data/dir to run vscode. VS Code will automatically generate some folders in the selected directory, and settings.json will be located in: SELECTED_DIRECTORY/User/settings.json.

source: https://stackoverflow.com/questions/55526645/extending-settings-json-in-vscode

Links

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