简体   繁体   English

如何恢复出厂设置 Visual Studio Code 或删除文件夹

[英]How do I factory reset Visual Studio Code or Delete Folders

I started to learn one language and moved to a different one.我开始学习一种语言并转向另一种语言。 I want to start with that language with a fresh code editor.我想从新的代码编辑器开始使用该语言。 But I don't know how to reset visual studio code and delete all my data.但我不知道如何重置 Visual Studio 代码并删除我的所有数据。 Can someone help me?有人能帮我吗? I'm quite new to vs code.我对 vs 代码很陌生。 (Sorry if this is a stupid question) (对不起,如果这是一个愚蠢的问题)

You can delete VSCode related data comletely by deleting both of these or if you just want to reset your editor just delete the .vscode folder in your user profile.您可以通过删除这两个来完全删除 VSCode 相关数据,或者如果您只想重置编辑器,只需删除用户配置文件中的.vscode文件夹。

To Delete user data directory Code:删除用户数据目录代码:

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

To Delete the extensions and other related data, delete the folder named.vscode:要删除扩展名和其他相关数据,请删除名为.vscode 的文件夹:

  • Windows %USERPROFILE%\.vscode Windows %USERPROFILE%\.vscode
  • macOS ~/.vscode/ macOS ~/.vscode/
  • Linux ~/.vscode/ Linux ~/.vscode/
  1. Press CTRL + SHIFT + PCTRL + SHIFT + P

在此处输入图像描述

  1. Type "settings json"输入“设置 json”

在此处输入图像描述

  1. Click "Preferences: Open Settings (JSON)"单击“首选项:打开设置 (JSON)”

在此处输入图像描述

  1. Edit file and leave only braces { }编辑文件,只留下大括号{ }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM