Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-11786

Auto format should not reflow comment text

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium

      When using auto format, it munges up comment blocks surrounded by OG comment delimiters. 

      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
       
      The fix is to set the Default value to false.

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: