admin管理员组文章数量:1194360
Could somebody please help me with rebinding CTRL+D
and CTRL+U
to the same function as before but with it automatically pressing zz
to center the line of code to the middle of the screen?
This is my current .json setup in VS Code for it (it doesn't work):
{ "before": ["<C-d>"], "after": ["<C-d>zz"] },
{ "before": ["<C-u>"], "after": ["<C-u>zz"] },
Thank you! :3
I already tried this line of code:
{ "before": ["<C-d>"], "after": ["<C-d>zz"] },
{ "before": ["<C-u>"], "after": ["<C-u>zz"] },
but this just stopped the two motions from working. What i want to happen when I press CTRL+D
or CTRL+U
is:
CTRL+D/U + zz
本文标签: jsonHow to add extra keys to a Vim motion in VSCodeStack Overflow
版权声明:本文标题:json - How to add extra keys to a Vim motion in VSCode? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738411031a2085323.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论