You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Linux下VSCode全局快捷键批量替换及配置文件位置咨询

解决Linux下VSCode Ctrl+Shift快捷键冲突问题

方案一:批量替换快捷键为Meta+Shift(全局生效含扩展)

VSCode支持通过键盘快捷键规则重映射实现批量替换,无需复制全局配置,步骤如下:

  • 打开快捷键设置界面:按Ctrl+K Ctrl+S,或通过菜单栏文件>首选项>键盘快捷键
  • 点击界面右上角的打开键盘快捷键(JSON)图标({}样式按钮),打开用户自定义的keybindings.json
  • 在空文件中添加以下规则,自动将所有Ctrl+Shift+X格式的快捷键替换为Meta+Shift+X,后续安装的扩展也会自动应用该规则:
[
    {
        "key": "meta+shift+${0}",
        "command": "${command}",
        "when": "${when}",
        "args": "${args}",
        "from": { "key": "ctrl+shift+${0}" }
    }
]

方案二:VSCode 1.76.2在Linux的全局快捷键配置文件路径

全局配置文件路径随安装方式不同而变化:

  • Debian/Ubuntu .deb包安装:/usr/share/code/resources/app/out/vs/platform/keybinding/common/keybindings.json
  • Snap安装:/snap/code/current/usr/share/code/resources/app/out/vs/platform/keybinding/common/keybindings.json
  • 手动解压tar.gz包安装:[你的VSCode解压目录]/resources/app/out/vs/platform/keybinding/common/keybindings.json

注意:修改全局文件需要管理员权限,且VSCode更新后会覆盖该文件,更推荐方案一的用户自定义映射方式,不受更新影响。

内容的提问来源于stack exchange,提问作者s79

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.27 00:33:10