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

Auto-completing certain C++ statements seems broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 4.8.0
    • C/C++/Obj-C++ Support
    • None
    • All

    Description

      Here are the most common offenders (see the attached animated gif captures)

      1. typing "default:" part of a switch statement will auto complete to "default::"

      2. typing "else {" after an if

      { ... }

      will auto complete to "else { }}", also breaking the indentation

      Needless to say this is extremely jarring.

      Also, it would be nice to have a option to disable this kind of auto-completion all together, while keeping the rest of the auto-completion functionality (as far as I can tell there's no way to disable this kind of built-in auto-completing w/o also disabling the identifier auto-completing)

      Attachments

        1. default.gif
          default.gif
          22 kB
        2. if_else.gif
          if_else.gif
          14 kB

        Issue Links

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

          Activity

            People

              kosjar Nikolai Kosjar
              lemo L M
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes