krasa / StringManipulation

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

right-aligned numbers #203

Closed daveyostcom closed 1 year ago

daveyostcom commented 1 year ago

I would like a checkbox to right-align numbers. In this image, see how all the numbers are left-aligned?

image

It would be great to be able to right-align them. Or if the numbers were to have decimal points, to align on the decimal points.

daveyostcom commented 1 year ago

Thanks!

krasa commented 1 year ago

You can try it: StringManipulation-9.11.0.zip

daveyostcom commented 1 year ago

Nice! And I like the way you did decimal point alignment.

krasa commented 1 year ago

Thanks. There is a problem when a column contains number+units. Not sure if I should add a field for changing the regex [ ,.\-+\d]*\d[ ,.\-+\d]* or column indexes image