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

Goto slot code creation does not follow c++ indentation

XMLWordPrintable

    • a60b43f02 (master)

      The auto inserted code always has a 4 character indent instead of what is set in options.

      Steps to reproduce:

      1. Options|Text Editor|Behaviour: Tab size:2 & Indent size:2
      2. Options|C++|Edit CodeStyle|General: Tab size:2 & Indent size:2
      3. Create form (MainWindow)
      4. Put Push Button on form
      5. Right click on button and select 'goto slot', select 'clicked()'

      What do you see:
      Some code is inserted with a code block. The cursor is positioned on the first (and only) empty line in the code block at column 4.

      What do you expect:
      The cursor should be on column 2.

        1. image-2024-02-29-21-15-58-206.png
          18 kB
          Aamer Shaikh
        2. image-2024-02-29-21-16-44-959.png
          43 kB
          Aamer Shaikh
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kandeler Christian Kandeler
            woomla Wo Om Laq
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes