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

Support more intelligent {

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Won't Do
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 4.5.2
    • C/C++/Obj-C++ Support
    • None

       

      if (x) 
          x+=2;

      Currently, insert { after  gives:

      if (x) {}

       

      but should give:

      if (x) {
          x+=2;
      }

      That is to say the closing brace should be inserted after the following indented block.

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

            kandeler Christian Kandeler
            scorp1us Jason Hihn
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes