There is a user keyboardSettings.json file located at ~/Library/Application Support/Code/User/keyboardSettings.json that we can add settings into, to override the settings in defaultKeyboardSettings.json. There is a global defaultKeyboardSettings.json file located in the VSCode installation location that is readonly. The VSCode keyboard shortcut settings work in a similar way as the VSCode editor settings. Then add settings to this file to override the Global or User settings in the same way that we added settings to the User setting.json file to override the Global defaultSettings.json file.
VSCode/settings.json file to your project directory. To configure per workspace settings, first add a. in that directory to launch VSCode, then our workspace becomes the ~/MyProject directory.
For example if we cd into a directory named ~/MyProject and type code. There can also be a per workspace directory settings.json file that can override both the Global (defaultSettings.json) and User(settings.json) file settings.Ī workspace is the root directory in the VSCode explorer which is the directory from which VSCode is launched. Conversely, opening up the settings.json file and updating a setting manually, will get reflected in the VSCode menu.
After that, any time we update the setting using the VSCode menu, VSCode will update the value of the setting in the settings.json file. To override a setting from the defaultSetttings.json file, all we need to do is manually copy that setting into our settings.json file and set its value to what we want.Īlso, when we change settings using the VSCode menu, VSCode adds the setting we changed to the settings.json file with the changed value. On a Mac, all VSCode user configuration files are located in the ~/Library/Application Support/Code/User/ directory. This is a VSCode User settings file that is located at ~/Library/Application Support/Code/User/settings.json on my MacBook. The settings in the defaultSetttings.json file can be overridden by user settings in a settings.json file. This file is readonly and can not be directly modified. The default VSCode settings are listed in a defaultSetttings.json file. I will provide links to those resources at the end of this post.īefore I go through my setup, it will help to detail how VSCode settings and keyboard shortcuts are configured, which I will describe in the following sections. Most of my setup is based on excellent resources by others on this topic.
In this post I will describe how I customize and use the Visual Studio Code (VSCode) editor for a more productive development experience. My Visual Studio Code Setup | aregsar Areg Sarkissian Posts | About My Visual Studio Code Setup