L-I-V / MQL-Tools

42 stars 15 forks source link

Insert mq4/mq5 with format on save adds space in vscode editor #37

Open peschu123 opened 1 year ago

peschu123 commented 1 year ago

Hi, somehow the auto format is adding a space between // and ###. So I instead of this //###<Experts/learning/candle_pattern.mq5>

I end up whith this: // ###<Experts/learning/candle_pattern.mq5>

And the extension is complaining that I should add the file to the top of the file.

image

I already disabled "Editor>Commands>InsertSpace image

I really have no clue where this comes from. I could not find a corresponding setting in clang-format.

I also tried to use comment pragma like this CommentPragmas: '^[^ ]

Nothing works, the space is always added

Maybe somebody could point me in the right direction? Or is it possible that the extension can also suppport // ###<Experts... in the future? ;-)

aipungggi commented 1 month ago

@peschu123 see https://github.com/L-I-V/MQL-Tools/issues/61#issuecomment-2107080286