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

Brace placement in auto complete of C++ if/else statements

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 4.8.0
    • Editors
    • None
    • Windows

      I have my coding style set to:

      {{{{if (i < b)}}}}
      {{ {{    bar (i);}}}}
      {{else}}
      {{{}}
      {{ {{    bar }}{{(i)}}{{; }}}}
      {{{{    bar(b);}}}}
      {{ {{}}}}}
      

      However when I type `else` and press enter, Qt Creator auto completes the brackets to:

      {{{{if (i < b)}}}}
      {{ {{    bar }}{{(i)}}{{;}}}}
      {{ {{else { }}}}
      {{ {{    CURSOR_HERE    }}}}
      {{ {{} }}}}
      

       

       

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

            davschul David Schulz
            cemsen Chris Emsen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes