英文:
VSCode Vim disabling multiple cursors
问题
我已经到处查找,但仍然无法关闭这个“功能”!
自上世纪80年代以来,我一直在使用vi和后来的vim,从来没有需要使用多个光标,也看不出它们有什么用处。
:range:s/search/replace/
完全满足我的需求,所以这个新功能让我无法忍受,尤其是当它在看似随机的情况下出现时,我不知道如何关闭它。
请问有没有人能告诉我如何在VSCode Vim 1.12.4中消除、删除或禁用多个光标功能?
英文:
I have looked everywhere and I am still unable to switch off this 'feature'!
I've been using vi and, later, vim, since the 80's and I have never had need of multiple cursors, nor can I see a use for them.
:<range>s/search/replace/
does everything I need so this new feature is infuriating beyond words, especially as I've no idea how to switch it off when it seemingly-randomly appears.
Would someone be wonderful enough as to tell me how to banish, remove, consign-to-history the multiple cursors feature in VSCode Vim 1.12.4, please?
答案1
得分: 4
我认为这个问题是特定于插件的。我最近在使用HTML插件时遇到了这个问题,我想你在处理HTML文件时也会遇到同样的问题,但同样的原则也适用于其他插件。你只需要找到这个设置。
在VS Code的设置中,有一个选项,它的名称是:
HTML: Mirror Cursor On Matching Tag
你可以取消勾选那里的框来禁用这个功能。或者你可以进入你本地仓库中的settings.json
文件(在.vscode
目录内),或者相应的全局文件,然后添加/修改以下字段,像这样:
"html.mirrorCursorOnMatchingTag": false
这应该可以解决这个问题。
英文:
I believe this issue is specific to the plugin. I experienced it with the HTML plugin recently, and I'm assuming you have the same problem with HTML files, but the same principle should apply to other plugins as well. You just have to find the setting.
In the VS Code settings, there is an option that reads:
HTML: Mirror Cursor On Matching Tag
You can uncheck the box there to disable the feature. Or you can go to the settings.json
in your local repo (inside the .vscode
directory), or the equivalent global file, and add/modify the following field like so:
"html.mirrorCursorOnMatchingTag": false
That should take care of it for you.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论