Reputation: 1572
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,
Upvotes: 41
Views: 52554
Reputation: 6021
For MAC users its:
/Users/{username}/Library/Application Support/Code/User/
and if you have a profile created in VS Code Profiles:
/Users/{username}/Library/Application Support/Code/User/profiles/{profileNumber}/
Its hidden so try to directly do a "Go to folder" from Finder app.
Upvotes: 9
Reputation: 1497
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
Upvotes: 75