IntelliJ plugin - https://plugins.jetbrains.com/plugin/2162
Provides actions for text manipulation:
Switch case:
- Switch case (camelCase, kebab-lowercase, KEBAB-UPPERCASE, snake_case, SCREAMING_SNAKE_CASE, dot.case, words lowercase, First word capitalized, Words Capitalized, PascalCase)
- Toggle: SCREAMING_SNAKE_CASE / camelCase
- Toggle: snake_case / camelCase
- Toggle: kebab-case / snake_case
- Toggle: kebab-case / camelCase
- Toggle: dot.case / camelCase
- Toggle: PascalCase / camelCase
- Toggle: lowercase words / camelCase
- Toggle: First word capitalized / camelCase
- Toggle: Capitalized Words / camelCase
- To camelCase
- To snake_case
- To kebab-case
- To SCREAMING_SNAKE_CASE
- To Capitalized_Snake_Case
- Capitalize
- To lower case
- To UPPER CASE
- Invert case
- To Spring Boot System Env Variable
- when nothing is selected, then either nothing or a whole line or a particular element is selected (report an issue if you find something to improve, each file type needs its own implementation to work flawlessly)
Un/Escape:
- Un/Escape selected Java text
- Un/Escape selected JavaScript text
- Un/Escape selected C# text (regular, verbatim, interpolated)
- Un/Escape selected HTML text
- Un/Escape selected JSON text
- Un/Escape selected XML text
- Un/Escape selected SQL text
- Un/Escape selected PHP text
- Convert diacritics (accents) to ASCII
- Convert non-ASCII to escaped Unicode
- Convert escaped Unicode to String
- Unicode normalization (NFD, NFC, NFKC, NFKD)
Encode/Decode:
- Encode selected text to MD5 Hex
- Encode selected text to SHA-1 Hex
- Encode selected text to SHA-256 Hex
- Encode selected text to SHA-512 Hex
- Encode selected text to SHA3-256 Hex
- Encode selected text to SHA3-512 Hex
- De/Encode selected text as URL
- De/Encode selected text to Base64
- De/Encode selected text to Hex
- ISO Timestamp to Epoch Milliseconds
- Epoch Milliseconds to ISO Timestamp
Increment/Decrement:
- Increment/decrement all numbers found.
- Duplicate selection and increment/decrement all numbers found.
- Create sequence - Keep first number, replace all other by incrementing
- Increment duplicate numbers
Sort with natural order or Collator:
- Reversing order of lines
- Shuffle lines
- Sort case-sensitive A-z
- Sort case-sensitive z-A
- Sort case-insensitive A-Z
- Sort case-insensitive Z-A
- Sort line length asc., desc.
- Sort hexadecimally
- Sort lines by subselection - only one selection/caret per line is handled
- Sort tokens (delimited text)
- Hierarchical sort
- Shuffle Characters
- JSON sort
Align:
- Align carets/selections into a vertical line by inserting spaces
- Format selected text to columns/table by a chosen separator/delimiter and sort by columns
- Align text to left/center/right
Filter/Remove/Trim/Convert...:
- Grep
- Inverted Grep
- Group by Grep - matched lines will be separated from not matched
- Trim
- Trim Trailing
- Trim Leading
- Replace whitespaces with a single space char
- Remove all spaces
- Remove duplicates - supports multicaret subselection
- Keep only duplicate lines
- Remove empty lines
- Remove consecutive empty lines
- Remove all newlines
- Minify JSON
- Convert Between JSON and YAML
Other:
- Reverse Letters
- Swap Words
- Swap Characters/Selections/Lines/Tokens
- Wrap or shift double quotes to single quotes to backticks
- Swap between double quotes and single quotes
- Straighten/Educate quotes
- Switch file path separators: Windows<->UNIX
- Select All Occurrences For All Carets
- Duplicate Line or Selection And Replace
- Extend Selection in Different "CamelHumps" Mode
Actions are available under Edit menu, or via the shortcut "alt M" and "alt shift M".
You can setup your own shortcuts for better usability.
Popup can be customized in File | Settings | Appearance & Behavior | Menus and Toolbars.
Privacy Notice: No personal data is collected at all
YourKit supports open source projects with its full-featured Java Profiler. YourKit, LLC is the creator of YourKit Java Profiler and YourKit .NET Profiler, innovative and intelligent tools for profiling Java and .NET applications.