krasa / StringManipulation

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

Some configurable Number formatting options #183

Open ufo2mstar opened 2 years ago

ufo2mstar commented 2 years ago

Is your feature request related to a problem? Please describe.

Would be great if this cool plugin also does Number formatting (like in Excel) like currency, accounting, etc.

Describe the solution you'd like

For example: format any number with some delimiter (, with configurable/localized spacing support):

12345678 => 12,345,678

or for _ as a numeric literal

12345678 => 12_345_678

May also be good to consider some flurishes like localized currency processing etc (like 123 => 123.00, etc), but I'll leave that to the implementation :)

Describe alternatives you've considered

I tried to look at the various options I got with this plugin, in the context menus and such, but didn't find any options with this feature. I looked at NumberConverter another nice plugin, which does not support this yet. Looked at other conversion tools, no one seems to be tackling this problem.

Additional context

This will help quickly parse, format, and process long string of numbers. Please help point me to any other tool or plugin that helps with this currently, that I may not have found yet 👍

krasa commented 1 year ago

I would suggest reporting it to https://github.com/dethlex/NumberConverter/issues

ufo2mstar commented 1 year ago

Sure, thanks for the reco. But if StringManipulation can support features like columnar alignments,
this simple and useful number-string formatting feature feels like a valuable addition.