Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/krasa/StringManipulation

IntelliJ plugin - https://plugins.jetbrains.com/plugin/2162
https://github.com/krasa/StringManipulation

intellij intellij-plugin java

Last synced: 15 days ago
JSON representation

IntelliJ plugin - https://plugins.jetbrains.com/plugin/2162

Awesome Lists containing this project

README

        

String
Manipulation [![Donate][badge-paypal-img]][badge-paypal] [![Version](http://phpstorm.espend.de/badge/2162/version)](https://plugins.jetbrains.com/plugin/2162)
[![Downloads](http://phpstorm.espend.de/badge/2162/downloads)](https://plugins.jetbrains.com/plugin/2162)
==================

IntelliJ plugin - https://plugins.jetbrains.com/plugin/2162

![](images/case.gif)

![](images/alignCaretsSelections.gif)

![](images/alignCarets.gif)

![](images/alignColumns.gif)

***

## Main features

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


- 'Switch case' action can be customized, or new ones can be added in settings

- 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 and no source code is transmitted to any server

------
![YourKit-Logo](https://www.yourkit.com/images/yklogo.png)

YourKit supports open source projects with its full-featured Java Profiler. YourKit, LLC is the creator
of [YourKit Java Profiler](https://www.yourkit.com/java/profiler/)
and [YourKit .NET Profiler](https://www.yourkit.com/.net/profiler/), innovative and intelligent tools for profiling Java
and .NET applications.

[badge-paypal-img]: https://img.shields.io/badge/donate-paypal-green.svg

[badge-paypal]: https://www.paypal.me/VojtechKrasa