简体   繁体   English

在VS代码vim插件中放置多个具有相同单词前缀的游标

[英]Place multiple cursors with the same word prefix in VS code vim plugin

In the vscode vim plugin, I use gb to select multiple words.在 vscode vim 插件中,我使用gb来选择多个单词。 I have four functions starting with handle but they are not exactly the same word.我有四个以handle开头的函数,但它们并不完全相同。 How can I put multi cursor for selecting them?如何放置多光标来选择它们? Thanks in advance!提前致谢!

  handleSearchTermOnChange 
  handleActivateSearch 
  handleDeactivateSearch
  handleSearchQuery

With my understanding (in VsCodeVim) you can.以我的理解(在 VsCodeVim 中)你可以。

  1. v
  2. cover the desired word/prefix (in your case handle)覆盖所需的单词/前缀(在您的情况下处理)
  3. gb as many times desired to choose all the instances you want. gb多次选择您想要的所有实例。
  4. Then do whatever you like whit the chose words.然后用选择的单词做任何你喜欢的事情。

Happy shortcut coding.快乐的快捷编码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM