What are ALL configuration files used by Visual Studio Code?

The VS Code docs mention the location for the settings files:

Depending on your platform, the user settings file is located here:

  • Windows %APPDATA%\Code\User\settings.json
  • macOS $HOME/Library/Application Support/Code/User/settings.json
  • Linux $HOME/.config/Code/User/settings.json

If you take a look at the Code folder, there are a bunch of other files stored there:

Code$ tree -L 1
.
├── Backups
├── Cache
├── CachedData
├── CachedExtensions
├── Code\ Cache
├── Cookies
├── Cookies-journal
├── GPUCache
├── Local\ Storage
├── Network\ Persistent\ State
├── Preferences
├── User
├── Workspaces
├── blob_storage
├── languagepacks.json
├── logs
├── machineid
├── rapid_render.json
├── storage.json
└── webrtc_event_logs

Those contain all the settings/configurations that VS Code maintains (apart from the .vscode folder in your workspace). If you delete the Code folder, your VS Code would then behave like it was freshly installed.

Most of them aren’t easily readable like JSON though, and most are stored in SQL DB files (.vscdb). For example, for remembering that “Don’t Show Again” prompt for files with .abc extensions, it’s stored in User/globalStorage/state.vscdb. Use a SQLite browser (like this) to open up that file, and you’ll see this:

enter image description here

…which stores the setting to not prompt me again for .csv and .abc files. (Try removing the “abc” from the DB value, and VS Code will prompt you again.)

For workspace-specific settings, they are stored in User/workspaceStorage, where each workspace is organized into folders like this:

workspaceStorage$ tree -L 1
.
├── 145974865976a98123d05b3b96dbf2c5
├── 20159dfdb7c4cda12efaac5f8e64a954
├── 33fd12012abefa2f7f2f0a3f185999cf
├── 34a3fbd8b284b6cfb29882db362faa4e
├── 44b251d79bd7f8f49c350d022bf7d03d
├── 63d838186f19687db224f4f7a27c62ab
...

Go into any one, and check the workspace.json to know which workspace the DB file is for. Then again open the state.vscdb to see something like this:

enter image description here

…which shows settings for remembering which files are opened, etc..

Leave a Comment