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

switch() has incorrect alignment

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P3: Somewhat important
    • None
    • Qt Creator 3.2.2, Qt Creator 3.3.0
    • C/C++/Obj-C++ Support
    • Windows 7

    Description

      I have the following "switch" style:

      int foo(int a)
      {
          switch(a)
          {
              case 1:
                  bar(1);
              break;
              default:
                  bar(2);
              break;
          }
          return 0;
      }

      But while typing Qt creator aligns it as follows:

      int foo(int a)
      {
          switch(a)
          {
              case 1:
                  bar(1);
                  break;
              default:
                  bar(2);
                  break;
          }
          return 0;
      }

      To fix that I need to select the entire "switch" statement and press Ctrl+I to force my alignment. Please see attach.

      Attachments

        Activity

          People

            kosjar Nikolai Kosjar
            dmitry64 Dmitry
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: