Version 1.3.25 build 4298 Problem still exists. After run the formatter twice, spaces are removed in the 2nd line. function ReadIntegerFromRegistry(const PathKey: string; const Key: string; var Value: Integer): Boolean; function ReadIntegerFromRegistry(const PathKey: string; const Key: string; var Value: Integer): Boolean;
Version 1.3.25 build 4298 Problem still exists. After run the formatter twice, spaces are removed.
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