VS Code首选项的位置 [英] Location of VS Code preferences

查看:82
本文介绍了VS Code首选项的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用VS Code在Dart中进行编码时,我的猫跳到了键盘上.结果是编辑器和侧边栏的字体大小大大增加.无济于事,我尝试了 Ctrl-.我无法访问设置,因为字体太大导致无法浏览设置.

My cat jumped onto my keyboard while I was coding in Dart using VS Code. The result was an enormous increase in font size for both the editor and the sidebar. To no avail I tried Ctrl -. I was unable to access settings because the large font size made navigating in settings impossible.

在绝望中,我卸载了VS Code,Flutter和Dart.我使用管理员帐户(Win 7)下载了所有三个文件并重新安装.我打开VS Code,发现字体大小已恢复.但是,当我将用户切换到普通的标准用户帐户并打开VS Code时,字体大小与重新安装该软件之前的大小相同.这使我相信,首选项文件或注册表项都已逐个用户保存了我的设置.但是这些设置实际上存储在哪里.

In despair, I uninstalled VS Code, Flutter, and Dart. Using an administrator account (Win 7) I downloaded all three and reinstalled. I opened VS Code and found that the font size was restored. But when I switched user to my normal standard user account and opened VS Code, the font size was as it was before I reinstalled the software. This leads me to the belief that either a preferences file or registry entries had preserved my settings on a user-by-user basis. But where are these settings actually stored.

我通常不使用管理员权限.它们保留用于系统范围的操作.我偶然发现了两个设置.

I do not normally use administrator privileges. They are reserved for system wide operations. It was only serendipitous that I found the two settings.

谢谢

推荐答案

根据

默认情况下,VS Code显示设置"编辑器,但是您仍然可以进行编辑使用打开设置(JSON)的基础settings.json文件命令或通过使用更改默认设置编辑器workbench.settings.editor设置.

By default VS Code shows the Settings editor, but you can still edit the underlying settings.json file by using the Open Settings (JSON) command or by changing your default settings editor with the workbench.settings.editor setting.

取决于您的平台,用户设置文件位于以下位置:

Depending on your platform, the user settings file is located here:

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

工作区设置文件位于根文件夹中的.vscode文件夹下.

The workspace setting file is located under the .vscode folder in your root folder.

注意:如果是多根工作区,则工作区设置为位于工作区配置文件中.

Note: In case of a Multi-root Workspace, workspace settings are located inside the workspace configuration file.

根据 Microsoft Docs:持久缩放级别条目您正在寻找的是: window.zoomLevel

According to Microsoft Docs: Persisted Zoom Level the entry you are looking for is: window.zoomLevel

这篇关于VS Code首选项的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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