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.
This question is related to
visual-studio-code
vscode-settings
To reset the default settings I'm not sure, but if you're just trying to get a menu bar back then try right clicking on the anywhere on the toolbar area and clicking the toolbar you need.
EDIT:
Figured out how to reset the settings
Click on the tools button on the top, click "Import and Export Settings" and then click "Reset All Settings". Then go through the wizard from there.
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.
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.
Go to File -> preferences -> settings.
On the right panel you will see all customized user settings so you can remove the ones you want to reset. On doing so the default settings mentioned in left pane will become active instantly.
Heads up, if clearing the settings doesn't fix your issue you may need to uninstall the extensions as well.
On Linux environment delete the folder "~/.config/Code" to reset Visual Studio Code Settings.
This may be overkill, but it seemed to work for me:
#!/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.
Source: Stackoverflow.com