--extensions-dir <dir>
--user-data-dir <dir>
source: https://code.visualstudio.com/docs/editor/command-line#_advanced-cli-options
See also:
- https://code.visualstudio.com/docs/getstarted/settings
- https://marketplace.visualstudio.com/items?itemName=aaronpowell.vscode-profile-switcher
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
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