How to reset settings in Visual Studio Code?
Solution 1
You can get your menu back by pressing/holding alt, you can then toggle the menu back on via the View menu.
As for your settings, you can open your user settings through the command palette:
From there you can delete the file's contents and save to reset your settings.
For a more manual route, the settings files are located in the following locations:
- Windows
%APPDATA%\Code\User\settings.json
- macOS
$HOME/Library/Application Support/Code/User/settings.json
- Linux
$HOME/.config/Code/User/settings.json
Extensions are located in the following locations:
- Windows
%USERPROFILE%\.vscode\extensions
- macOS
~/.vscode/extensions
- Linux
~/.vscode/extensions
Solution 2
If you want to reset everything, go to %userprofile%\AppData\Roaming\Code
and delete the whole folder after you uninstall the VS code, then install it again.
Also in %userprofile%\.vscode
delete extensions folder in case you want to delete all extensions.
Solution 3
This may be overkill, but it seemed to work for me (on a Mac):
#!/bin/sh
rm -rfv "$HOME/.vscode"
rm -rfv "$HOME/Library/Application Support/Code"
rm -rfv "$HOME/Library/Caches/com.microsoft.VSCode"
rm -rfv "$HOME/Library/Saved Application State/com.microsoft.VSCode.savedState"
After I ran that, and restarted VSC, it showed the the "Welcome" screen, which I took to mean that it was starting from scratch.
Solution 4
If you want to start afresh, deleting the settings.json
file from your user's profile will do the trick.
But if you don't want to reset everything, it is still possible through settings menu.
You can search for the setting that you want to revert back using search box.
You will see some settings with the left blue line, it means you've modified that one.
If you take your cursor to that setting, a gear button will appear. You can click this to restore that setting.
You can also use the drop-down below that setting and change it to default.
Solution 5
On Linux environment delete the folder "~/.config/Code" to reset Visual Studio Code Settings.
Related videos on Youtube
Arkadiusz Kałkus
I’m a full-stack developer specialized in the design, and implementation of corporate web applications. I put emphasis on S.O.L.I.D. craftsmanship and strive to keep my code clean. Because I know how expensive technical debt can be. Because I understand my job is not to write code but to solve problems. Because I want to help people to be more effective through the software.
Updated on January 05, 2022Comments
-
Arkadiusz Kałkus over 2 years
It's a simple thing and I was pretty sure it's well described, but surprisingly it is not so obvious.
Here I've found a detailed description of settings file. As it states it should be
setting.json
file located%APPDATA%\Code\User\settings.json
, but in my case it's not there.Can someone give me some help with restoring default settings in Visual Studio Code? I've hidden menu bar by accident and I can't find no way to show it back.
-
Arkadiusz Kałkus over 8 yearsThank you Daniel. I'm a little bit surprised that toggling menu bar visibility isn't saved in settings file, but as far as I understand deleting content of user settings should bring default settings, so this is it. Thanks again.
-
RayLoveless over 5 yearsJust deleting the code folder did the trick for me. Thanks for actually answering the question.
-
Mahesh Jamdade over 5 yearsremoving contents of settings,json worked like a charm thanks for the solution
-
whisk over 4 yearsThis has to be the best answer if you are looking to get certain things back. The blue line was key into finding things I've changed.
-
Gonen over 4 yearsFor step '4.' you could also type
@modified
in the top-bar and press Enter - will show you just the modified settings. From there you can click each, click the cog ("Manage") and choose Reset. -
may over 4 yearsbut only the user settings here, not all the settings
-
user1783732 over 4 yearsAs of version 1.41.1 on macOS, the key bindings are now in
keybindings.json
under the same directory assettings.json
. To restore the default key bindings, just remove changes inkeybindings.json
. -
Shivam Jha over 3 yearsThis should be the accepted answer. Clear. Concise. To the point. And it works!
-
Henry over 3 yearsPerfect solution
-
Toan NC about 3 yearsThanks. It's a good way to see the fully JSON settings file that we changed so that we can revert the stuff strange or redundant
-
superjojo140 about 3 yearsOn Linux you can use this guide: Reset all user settings for VSCode (Code OSS) on Linux
-
Pynchia about 3 yearsAlso remove the
.vscode/
dir in your project folder -
offby1 about 3 yearsGood point, @Pynchia. In a perfect world, you'd do
git clean -dxf
, but that's a very sharp knife :-) -
Ricardo Gellman about 3 yearsAnother microsoft family way to do simple things
-
Vaibhav Jain over 2 yearsThanks for this. You saved my day :)
-
Olivier Lacan over 2 yearsHad
Go To Definition
andPeek Definition
not working and this finally fixed it. Thanks. -
Aiswarya Rajagopalan over 2 yearsThis worked for me!thanks
-
Hassan Khan about 2 yearsI used your method and also cleaned all the files manually and final approach to uninstalled manually.
-
Amit Kumar almost 2 yearsIf you experimented with iTerm and then removed it, and now your font looks wonky, try this. Worked for me