Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-367

Improvement in C/C++ Code Formatter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Next
    • None
    • Windows 10

    Description

      In C, C++ and C/C++ Header files, formatting features are insufficient compared to Java files.
      I hope following improvements are made:

      1. Indentation in first line of main() function
      After creating new main file, the first line of main() function has no indentation. It needs to apply indent in all lines of main() function as default.

      2. Removing blank lines after namespace/access modifier
      I added a blank line before classes and functions, but I want to make an exception about namespaces and access modifiers(public, private, protected, and etc). I tried to remove blank line after namespace/access modifier but I couldn't find any options about it.(cppformat.png) Plus, it would be great if a new option to set the number of black lines after function.

      3. Formatting block comments
      Unlike Java files, there is no option about formatting block comments so It is impossible to add Leading Star('*') automatically inside the block. I hope that option to be added.

      Attachments

        1. cppformat.png
          7 kB
          NDelt

        Activity

          People

            Unassigned Unassigned
            NDelt NDelt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: