Select Pair Content is a JetBrains IDE plugin that allows you to quickly select content within a file. It has two main functions:
- Selecting content between matching pairs of tokens such as parentheses
(), brackets[], braces{}, quotes''""` `, and angle brackets<>. - Select content based on the underlying PSI Elements that make up a file.
For both pair and element based selection, the plugin supports expanding a selection and shrinking it. Repeated invocations of the plugin action will expand out the given selection. Exact behavior is determined by the given action as follows:
- Pair Select
- Expand: Repeated expand action invocations will expand out the selection to the next pair of matching tokens.
- Shrink: Repeated shrink action invocations will shrink the selection to the next pair of matching tokens within the existing selection.
- Element Select
- Expand: Repeated expand action invocations will select the given element's parent element.
- Shrink:Repeated shrink action invocations will shrink the selection to the given element's child element that contains the caret.
| Action | Windows/Linux | MacOS |
|---|---|---|
| Expand Pair Content Selection | Alt+Q |
Option+Q |
| Shrink Pair Content Selection | Alt+A |
Option+A |
| Expand Element Selection | Alt+W |
Option+W |
| Shrink Element Selection | Alt+S |
Option+S |
-
Using the IDE built-in plugin system:
Settings/Preferences > Plugins > Marketplace > Search for " Select Pair Content" > Install
-
Using JetBrains Marketplace:
Go to JetBrains Marketplace and install it by clicking the Install to ... button in case your IDE is running.
You can also download the latest release from JetBrains Marketplace and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...
-
Manually:
Download the latest release and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
This plugin is based on the code-buddy-plugin plugin.
Plugin based on the IntelliJ Platform Plugin Template.