由于我习惯用alt + hjkl 表示上下左右,所以alt+key的快捷键很烦,白占地方。
atom有不错的解决方案,参考。
https://my.oschina.net/oldfeel/blog/530233
但是vscode找不到,google也没找到,只好自己摸索了。。
以下教程在Ubuntu16.04上测试通过,按理说这东西跨平台的,相对路径应该是通用的,绝对路径自己照着调整一下就好了。
历程:
先在vscode目录下,grep -lr menu . 。
查找所有包含menu字符串的文件,实在太多了,作罢。。
后来 grep -lr 菜单 . 。
查找所有包含 “菜单” 的文件,就三个,于是发现了&& file这个东西。
嘿嘿嘿。。
我们都知道 &&File 就可以表示,alt+f 调用菜单栏快捷键,把&&删掉就删掉了这个快捷键。
找到这里就解决了。。
结论:
vscode 下安装目录 /usr/share/code/resources/app/out/vs/code/electron-main下
main.nls.js 和main.nls.zh-cn.js 执行一下查找替换,把“&&” 替换为“”(就是空字符串) 就行了。。