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

"just the facts" mode for QtCreator editor would make convoluted-conditional-code easier to read

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • None
    • C/C++/Obj-C++ Support

      The QtCreator editor is currently capable of:
      1. using build environment to detemine which #if statements will pass the preprocessor.
      2. collapsing arbitrary sets of code blocks, to include for-loops, while-loops, #if-blocks, #ifdef-blocks, and so on.

      This suggestion is to introduce an optional new mode to the editor, in which all preprocessor blocks that will not be compiled will automatically be collapsed.

      Seems like there would be some awkwardness when a user has that mode enabled, while typing in new conditional blocks. However, the parser seems to keep track of which #if has not yet been closed with a #endif. I would think that while the user is editing any part of the conditional block (and maybe, for a while after it's fully implemented) that it would remain un-collapsed.

      The mode could possibly be called "Auto collapse unreachable code".

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

            kandeler Christian Kandeler
            glenm Glen Mabey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes