Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>selection-apiNew to Visual Studio Code? Get it now.
selection-api

selection-api

ratierd

|
241 installs
| (0) | Free
Contribute's selection command to integrate with ModalEdit. Original code from vscode-quick-select
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Selection API

This is a fork of vscode-quick-select.

All keybindings and user exposed commands have been removed only to keep a single command to use in ModalEdit configuration like this :

{
  "(,)": [
    "modaledit.cancelSelection",
    {
      "command": "selection-api.selectMatching",
      "args": "{ start_char: '(', end_char: ')', outer: __rkeys[1] == 'a' }"
    }
  ],
  "{,}": [
    "modaledit.cancelSelection",
    {
      "command": "selection-api.selectMatching",
      "args": "{ start_char: '{', end_char: '}', outer: __rkeys[1] == 'a' }"
    }
  ],
  "[,]": [
    "modaledit.cancelSelection",
    {
      "command": "selection-api.selectMatching",
      "args": "{ start_char: '[', end_char: ']', outer: __rkeys[1] == 'a' }"
    }
  ]
}

It allows to move away from modaledit.selectBetween where we want to take nested structures into account.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft