skip to Main Content

You can select entire words with the shortcut Ctrl + Shift + [Right/Left arrow] but is there a shortcut to select everything up to next space? Say I want to select the text foo/bar the previous shortcut will stop at the / slash symbol, but I want to select up to the end of the expression, which in this case, will end at the next space.

I tried the vscode-powertools solution from this post but couldn’t make it work.

Edit: I’m working on Windows 10

2

Answers


  1. Are you working with mac? Let’s use CMD + pattern rather than Ctrl + pattern

    Login or Signup to reply.
  2. you can use the extension I wrote: Select By

    Add this keybinding:

      {
        "key": "ctrl+shift+alt+right",
        "when": "editorTextFocus",
        "command": "selectby.regex",
        "args": {
          "forward": " ",
          "forwardInclude": false
        }
      }
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search