For type TClass = class(TObject) private procedure bla; { this is a comment // indent des not matter -- with // first full comment line, indent is 7 -------- multiple // indent is 1, relative indent is -6 --------lines// indent is 2, relative indent is -5 } // indent is 10, relative indent is 3 end; i would expect. type TClass = class(TObject) private procedure bla; { this is a comment -- with -------- multiple --------lines } end;
For type TClass = class(TObject) private procedure bla; { this is a comment // indent des not matter -- with // first full comment line, indent is 7 -------- multiple // indent is 1, relative indent is -6 --------lines// indent is 2, relative indent is -5 } // indent is 10, relative indent is 3 end; i would expect. type TClass = class(TObject) private procedure bla; { this is a comment -- with -------- multiple --------lines } end;
The main problem in my eyes is that if you have a multiline comment that is not indented, it is visually more difficult to distinguish from the next line. In this case the line with "procedure functiony();". Each comment line (1+) of the multiline comment should start at the same indentation level.
The main problem in my eyes is that if you have a multiline comment that is not indented, it is visually more difficult to distinguish from the next line. In this case the line with "procedure functiony();". Each comment line of the multiline comment should start at the same indentation level.
The main problem in my eyes is that if you have a multiline comment that is not indented, it is visually more difficult to distinguish from the next line. In this case the line with "procedure functiony();". Each comment line of the multiline comment should start at the same indentation level.
clang format does it job very well in c/c++ context. Maybe the reflow style option would be an possibility. https://clang.llvm.org/docs/ClangFormatStyleOptions.html#reflowcomments
Would it be possible to create an option that ignores the relative indent for comments and puts everything on one level?
Here is the current configuration and an gif which shows the behavior Im using Version 1.3.22 Build 4008