Feature #126

Reindent comment, if not space before then please do not indent

Added by Wil van Antwerpen almost 5 years ago. Updated almost 5 years ago.

Start date:
Due date:
% Done:



On behalf of Marco28 at discord chat
Hi Wil
The // indent is exact as I asked and most of the time perfect. Just one exception would be good. If it was not indented then leave alone. But when even only one space or tab is before the // at the front then replace with the correct indent. Is that possible?

@Wil the reason of the two // is the ctrl/ commenting of code vs the documentation of code. Once indented you cannot do the Ctrl/ to indent. However if there is a choice then I prefer to have the indented comments. Perhaps a flag for ‘reindent comments’ which would leave them alone if not selected irrespective of the start position.

Related issues

Related to DfRefactor - Suggestion #185: Comments at column 0 should not be indented New 01/17/2021


#1 Updated by Wil van Antwerpen almost 5 years ago

  • Status changed from New to Resolved

The reindent request "don't indent on comment lines at column 0" is implemented and can be controlled by property pbReindentStudioCommentOut ... I'm not sure that I will keep that property set to true. Don't really like it much. If you run the reindenter over code then normally you are at least going to check the code in. At that stage I think it is usually best to get rid of commented out code. If you want to keep it then it probably isn't a very big deal if it is indented

#2 Updated by Wil van Antwerpen over 1 year ago

  • Related to Suggestion #185: Comments at column 0 should not be indented added

Also available in: Atom PDF