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

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

    XMLWordPrintable

Details

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

    Description

      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    }}}}
      {{ {{} }}}}
      

       

       

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: