Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Location of VS Code preferences

My cat jumped onto my keyboard while I was coding in Dart using VS Code. The result was an enormous increase in font size for both the editor and the sidebar. To no avail I tried Ctrl -. I was unable to access settings because the large font size made navigating in settings impossible.

In despair, I uninstalled VS Code, Flutter, and Dart. Using an administrator account (Win 7) I downloaded all three and reinstalled. I opened VS Code and found that the font size was restored. But when I switched user to my normal standard user account and opened VS Code, the font size was as it was before I reinstalled the software. This leads me to the belief that either a preferences file or registry entries had preserved my settings on a user-by-user basis. But where are these settings actually stored.

I do not normally use administrator privileges. They are reserved for system wide operations. It was only serendipitous that I found the two settings.

Thanks,

like image 606
Gus Avatar asked Dec 18 '18 20:12

Gus


People also ask

Where is VS Code settings file on Windows?

On a Windows machine, the VS Code user settings file is located at %AppData%\Code\User\settings.


1 Answers

According to Microsoft Docs: Settings file locations:

By default VS Code shows the Settings editor, but you can still edit the underlying settings.json file by using the Open Settings (JSON) command or by changing your default settings editor with the workbench.settings.editor setting.

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

The workspace setting file is located under the .vscode folder in your root folder.

Note: In case of a Multi-root Workspace, workspace settings are located inside the workspace configuration file.

According to Microsoft Docs: Persisted Zoom Level the entry you are looking for is: window.zoomLevel

like image 184
BiNZGi Avatar answered Oct 02 '22 16:10

BiNZGi