krasa / StringManipulation

IntelliJ plugin - https://plugins.jetbrains.com/plugin/2162
Apache License 2.0
694 stars 81 forks source link

Split String #206

Open feinstein opened 1 year ago

feinstein commented 1 year ago

Sometimes I have a string like

a, b, c, d

and I want to split it on each comma, making it as

a,
b,
c,
d

This could be a very helpful tool to have in this plugin.

krasa commented 1 year ago

I use just multicarets for that

feinstein commented 1 year ago

How do you place all the multicarets automatically on each comma?

krasa commented 1 year ago

Main Menu | Edit | Find | Add Selection for Next Occurrence or Main Menu | Edit | Find | Select All Occurrences

I mapped it to alt+D and alt+G, or just user Replace. Maybe a Macro would be also useful.

feinstein commented 1 year ago

Well I would appreciate if I could select a text and go to String Manipulation > Split and then I provide the split delimiter, it's simpler I guess.

On Mon, May 29, 2023, 13:38 Vojtěch Krása @.***> wrote:

Main Menu | Edit | Find | Add Selection for Next Occurrence or Main Menu | Edit | Find | Select All Occurrences

I mapped it to alt+D and alt+G, or just user Replace. Maybe a Macro would be also useful.

— Reply to this email directly, view it on GitHub https://github.com/krasa/StringManipulation/issues/206#issuecomment-1567335153, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB56RGCHJMHEUBAALQLXQTDXITGJNANCNFSM6AAAAAAYS6WDTY . You are receiving this because you authored the thread.Message ID: @.***>