Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-13344

Allow code folding on preprocessor branches

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 3.2.1
    • Editors
    • None
    • Windows 7 Ulitmate

    Description

      It would help to hide a lot of clutter if the editor had an option to enable code folding on preprocessor branches. For example if I want to just add some sections for folding code I can do this

      #if true // Property Macro section
      AUTO_PROPERTY(...)
      //Many more lines of properties
      #endif
      

      I can reduce all that to a single line by clicking next to the #if.

      I also think there is a bit of a bug regarding this issue. If you add a preprocessor macro like this around some code it seems to disable the code folding you would otherwise get inside the branch. The code background changes color and perhaps that is related.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              davschul David Schulz
              rolias Tod Gentille
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes