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

Auto-completing certain C++ statements seems broken

XMLWordPrintable

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

      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)

        1. default.gif
          22 kB
          L M
        2. if_else.gif
          14 kB
          L M
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes