Search code examples
visual-studio-codevscodevim

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. I have four functions starting with handle but they are not exactly the same word. How can I put multi cursor for selecting them? Thanks in advance!

  handleSearchTermOnChange 
  handleActivateSearch 
  handleDeactivateSearch
  handleSearchQuery

Solution

  • With my understanding (in VsCodeVim) you can.

    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.
    4. Then do whatever you like whit the chosen words.

    Happy shortcut coding.