欢迎来到cool的博客
7

Music box

Click to Start

点击头像播放音乐
新博客链接

Mac系统下visual studio code 使用 vim插件 hjkl键不能连续移动光标?

http://blog.fireyang.com/2018/01/16/mac-visual-studio-code-vim-hold-key-bug/

https://stackoverflow.com/questions/39972335/how-do-i-press-and-hold-a-key-and-have-it-repeat-in-vscode/44010683#44010683

 

解决

这个问题是 mac 系统本身的问题, 需要在终端配置即可:

defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false         # For VS Code 一般这个是好使的
defaults write com.microsoft.VSCodeInsiders ApplePressAndHoldEnabled -bool false # For VS Code Insider

 

mac下的VScode vim 插件, 常按hjkl键无法持续移动光标

解决

终端下执行命令:

1
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false

 

复原:

1
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool true

 

 

返回列表