Typescript enum comments indentation varies

Hello,

I'm currently creating an enum in Typescript and I want to add comments in it. I also use the auto-formatting of the code on save (via a macro).

My issue is that comments indentation differs depending on the position of the comment. In the example below, the 3 comments aren't on the same indentation level, and I can't find the rule that makes it this way.

Does anyone know how to solve this quirk ? Thanks in advance !

 

Additional data :

Settings > Editor > Code Style > Typescript > Tabs and Indents

 

.editorconfig file

# Editor configuration, see http://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false
0
2 comments

there is no way to fix the indentation, please follow https://youtrack.jetbrains.com/issue/WEB-27834 for updates

0
Avatar
Permanently deleted user

Thanks for the answer and for the ticket Elena.

Have a nice day.

0

Please sign in to leave a comment.