krasa / StringManipulation

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

Ignore leading `//` when performing align action #224

Open HaydenReeve opened 7 months ago

HaydenReeve commented 7 months ago

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

When using the align function, you can currently perform two options: align, and sort.

Sorting has an option to enable you to ignore the // characters that might be contained within a selection, whereas aligning does not.

Describe the solution you'd like

The option to ignore lines leading with // for determining column sizes.

Additional context

This problem actually prevents you from using // to align data, as the initial alignment column becomes massive if a long comment takes up too much space.

image

Thank you 🙏