Reindent comment, if not space before then please do not indent
On behalf of Marco28 at discord chat
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.
#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