这是一个简单的事情,我很确定已经有了很好的描述,但令人惊讶的是它并不那么明显。
在这里 我找到了设置文件的详细说明。如文中所述,应该是setting.json
文件位于%APPDATA%\Code\User\settings.json
,但在我的情况下并没有找到。
有人可以帮我恢复Visual Studio Code的默认设置吗?我不小心隐藏了菜单栏,现在无法找到任何方法将其显示出来。
这是一个简单的事情,我很确定已经有了很好的描述,但令人惊讶的是它并不那么明显。
在这里 我找到了设置文件的详细说明。如文中所述,应该是setting.json
文件位于%APPDATA%\Code\User\settings.json
,但在我的情况下并没有找到。
有人可以帮我恢复Visual Studio Code的默认设置吗?我不小心隐藏了菜单栏,现在无法找到任何方法将其显示出来。
如果你想采用更加手动的方式,设置文件位于以下位置:
%APPDATA%\Code\User\settings.json
$HOME/Library/Application Support/Code/User/settings.json
$HOME/.config/Code/User/settings.json
扩展位于以下位置:
%USERPROFILE%\.vscode\extensions
~/.vscode/extensions
~/.vscode/extensions
如果您想要重置所有内容,请在卸载VS Code后前往%userprofile%\AppData\Roaming\Code
并删除整个文件夹,然后重新安装。
此外,在%userprofile%\.vscode
中删除扩展文件夹,以删除所有扩展。
这可能有些过度,但对我来说似乎很有效(在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"
我运行了那个程序,然后重新启动了VSC,它显示了“欢迎”屏幕,我认为这意味着它是从头开始启动。
.vscode/
目录。 - Pynchiagit clean -dxf
,但那是一把非常锋利的刀 :-) - offby1前往 文件 -> 首选项 -> 设置。
在右侧面板中,您将看到所有定制的用户设置,因此可以删除您想要重置的设置。这样做后,左侧面板中提到的默认设置将立即生效。
“在进行核心操作并删除您的当前配置文件和VSCode设置之前,这会有所帮助。”transient profiles
These profiles are deleted automatically once the last window which uses it is closed.
You can create and associate a transient profile from
CLI by passing
--profile-transient
flag. Eg:code <folder-uri> --profile-transient
UI from Command Palette using command
Create Transient Settings Profile
These will create a transient settings profile and associate it to the workspace.
Once the workspace is closed (or uses different profile) this profile is deleted.
settings.json
相同目录下的keybindings.json
中。要恢复默认的键绑定,只需删除keybindings.json
中的更改即可。 - user1783732