This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
When using auto format, it munges up comment blocks surrounded by OG comment delimiters. For example, if I have this comment:
After right-click format document, I get this:
The obvious work around is to use the newfangled // delimiter, but I would think that auto-format should just leave comments alone.
Hi Keith,
Document formatting is handled by the clangd extension. The behavior can be modified using a `.clang-format` file. You can create a `.clang-format` file in your home directory and use the options specified here: https://clang.llvm.org/docs/ClangFormatStyleOptions.html.
Adding this line to the file should fix the issue and comments wouldn't be formatted.ReflowComments: false
Hope this helps!
Thanks, I did not know this existed.
Though, "ReflowComments: false" should be the default, IMHO.
Hi Keith,
I have created a ticket to have the default value set to false. CCSNXT-1513.
Patrick
I have created a ticket to have the default value set to false. CCSNXT-1513.
Please use this external link to track this issue: https://sir.ext.ti.com/jira/browse/EXT_EP-11786