car*_*ich 3 visual-studio-code
我在 Windows 上使用 Visual Studio Code 已经有一段时间了,随着时间的推移,我配置了几个个人键绑定。现在,除了 Windows 机器之外,我还开始使用 Mac。当打开设置同步时,我意识到虽然我的所有设置和扩展都像在 Windows 实例上一样正确设置,但键绑定却并非如此。我的键绑定 JSON 文件是空的。
我通过我的 GitHub 个人资料使用设置同步。
有没有办法使用设置同步在 Windows 和 Mac 之间共享我的按键绑定?或者还有其他的可能性吗?
有一个同步设置可以禁用每个平台的单独键绑定:
"settingsSync.keybindingsPerPlatform": false
Run Code Online (Sandbox Code Playgroud)
这将使您的设置在 Windows 和 Mac 之间同步。如果您想在此共享文件中定义特定于平台的键绑定,请使用isWindows或isMac条件:
{
"key": "ctrl+shift+j",
"command": "workbench.action.openSettingsJson",
"when": "isWindows"
},
{
"key": "cmd+shift+j",
"command": "workbench.action.openSettingsJson",
"when": "isMac"
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
769 次 |
| 最近记录: |