Change VSCode User Settings location

前端 未结 3 494
鱼传尺愫
鱼传尺愫 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-04 00:19

    Another good option (if you'll pardon the late response) for versioning VSCode's user settings would be to use the Git "bare" repo method of versioning dot-files, as outlined here:

    https://www.ackama.com/blog/posts/the-best-way-to-store-your-dotfiles-a-bare-git-repository-explained

    By making $HOME your Git working directory for a Git Bare repo, all files under $HOME are eligible to be Git-Tracked, including VSCode's user settings. What I like about this approach is it works without moving dot-files or VSCode settings away from their default or expected paths.

提交回复
热议问题