Change VSCode User Settings location

前端 未结 3 493
鱼传尺愫
鱼传尺愫 2021-02-03 23:52

I want to put my User Settings file under version control, preferably a separate folder, but I can\'t find the option to tell VSCode where my settings file is located.

I

3条回答
  •  被撕碎了的回忆
    2021-02-03 23:52

    You can add a settings file for a workspace like this :

    /yourproject/.vscode/settings.json
    

    Or use the editor and goto :Preferences->settings and select workspace settings in the top bar.

    These can be checked into your project and then to source control.

    Reference : https://code.visualstudio.com/docs/getstarted/settings#_creating-user-and-workspace-settings

    The file is created for you by default when editing the settings in your workspace. There you can select User or Workspace settings.

    You can also open the Settings editor from the Command Palette (⇧⌘P) with Preferences: Open Settings or use the keyboard shortcut (⌘,).

提交回复
热议问题