Skip to content

JetBrains plugin to select the contents of a matched pair of symbols

License

Notifications You must be signed in to change notification settings

j-d-ha/select-pair-content

Repository files navigation

Select Pair Content

Build Version Downloads

About The Plugin

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.

Keyboard Shortcuts

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

Installation

  • 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...

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

This plugin is based on the code-buddy-plugin plugin.


Plugin based on the IntelliJ Platform Plugin Template.

About

JetBrains plugin to select the contents of a matched pair of symbols

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages