chouzz / vscode-better-align

Better vertical alignment with/without selection in any language.
https://marketplace.visualstudio.com/items?itemName=Chouzz.vscode-better-align&ssr=false#overview
Apache License 2.0
39 stars 4 forks source link

Comment on the first line shifts two spaces to the right each time code alignment is executed #105

Open redherring74 opened 1 year ago

redherring74 commented 1 year ago

When performing a code alignment operation, I've noticed an issue where the comment on the first line of code moves two spaces to the right every time the alignment is executed. This behavior is consistent and repeatable.

Steps to reproduce:

  1. Write a comment on the first line of code.
  2. Perform code alignment operation.
  3. Notice that the first line comment has shifted two spaces to the right.

Expected behavior:

The first line comment should remain in its original position when code alignment is performed.

Actual behavior:

The first line comment moves two spaces to the right each time code alignment is executed.

Additional context:

This issue seems to occur no matter what the content of the comment is, or how many times the alignment operation is performed.

Please let me know if you need more information about this issue.

Thank you for your attention to this matter.

chouzz commented 1 year ago

I reproduced this problem in my pc, will take a look.