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

in editor, echo opening line to the right of closing lines

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P4: Low
    • None
    • None
    • Editors
    • None

    Description

      It would be "really nice" if while editing source code, a block closing statement indicates to the user the statement that opened the block, if the block is longer than, say, 5 lines.

      For if-statements, it would look like this:

        if (m_skyIsStillBlue) {

            watchBirds();

            fishFish();

            somethingElse();

        }    closes if (m_skyIsStillBlue){}

      where "closes if (m_skyIsStillBlue)" is one of those nifty prompts that appear automagically, often indicating a likely compile-time error or warning.

      Similarly for #if:

        #if Q_OS_WASM

          blah

          more blah

        #endif    closes #if Q_OS_WASM

      Attachments

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

        Activity

          People

            davschul David Schulz
            glenm Glen Mabey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes