如何在 Visual Studio Code 中重置设置? [英] How to reset settings in Visual Studio Code?

查看:89
本文介绍了如何在 Visual Studio Code 中重置设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一件简单的事情,我很确定它描述得很好,但令人惊讶的是它并不那么明显.

从那里您可以删除文件的内容并保存以重置您的设置.

<小时>

对于更手动的路线,设置文件位于以下地点:

  • Windows %APPDATA%\Code\User\settings.json
  • macOS $HOME/Library/Application Support/Code/User/settings.json
  • Linux $HOME/.config/Code/User/settings.json

扩展位于以下位置:

  • Windows %USERPROFILE%\.vscode\extensions
  • macOS ~/.vscode/extensions
  • Linux ~/.vscode/extensions

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.

解决方案

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:

  1. Press F1
  2. Type user settings
  3. Press enter
  4. Click the "sheet" icon to open the settings.json file:

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

这篇关于如何在 Visual Studio Code 中重置设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆