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

Superimpose context after closing blocks

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • None
    • C/C++/Obj-C++ Support
    • None
    • That should be doable.

      For the curly-braces, that could be done even in a "generic way" - we already have information about opening and closing parentheses.

      #ifdef and friends are of course language specific.

    Description

      "jason

      June 5, 2018 at 16:00

      I liked the clazy stuff in 4.6, but found the implementation problematic. If this works, this will be amazing! Given the way the super-imposed suggestions are implemented, I wonder how hard it is for a a feature I’ve been requesting is? The feature is matching } with the opening so that

      if (x==7) {

      } [if( x==7)]

      or

       

      Rectangle {

          id: background

      } [ Rectangle id: background]

      where the stuff in [ ] is superimposed." ( http://blog.qt.io/blog/2018/06/05/qt-creator-4-7-beta-released/ )

       

      it should also be done with #if and #endif blocks. all too often coders hard-type those very same hints as C++ comments.

      if there isn't enough room to show it superimposed in the editor, fall back to hover tooltip.

       

       

      Attachments

        Issue Links

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

          Activity

            People

              kosjar Nikolai Kosjar
              d3fault d3fault
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes