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,
On a Windows machine, the VS Code user settings file is located at %AppData%\Code\User\settings.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With