windows - VS 代码首选项的位置

标签 windows visual-studio-code dart

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

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

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

谢谢,

最佳答案

根据 Microsoft Docs: Settings file locations :

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

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: Persisted Zoom Level您要查找的条目是:window.zoomLevel

关于windows - VS 代码首选项的位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53840644/

相关文章:

windows - 使用 Win32/C++ 读取 PNG

c# - 如何从Windows中使用C#删除字体?

visual-studio - Visual Studio Code 中是否有 "Only use Tab or Enter to commit"选项?

exception - 如何在 Dart 中通过 waitFor 抛出一个 future

c++ - 在不减慢线程速度的情况下保存大量数据

c# - WMI 提供程序程序集中的 RunInstaller 属性

c++ - 程序以Visual Studio代码结束后,如何停止Task运行终端自动退出?

git - 是否可以在创建文件后立即使用 VS Code 自动添加文件?

firebase - Flutter Firebase child 数量

listview - Flutter 类型 'List<dynamic>' 不是类型 'list<Widget>' 的子类型