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

Failure to align continuation lines with spaces

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • Qt Creator 4.0.0-beta1
    • Qt Creator 2.4.1, Qt Creator 2.5.2
    • Editors
    • None
    • Ubuntu 10.04 64-bit.
    • 9aa51d4857702c22d359014356d06c9d92677904

    Description

      Have tested this issue on both QtCreator 2.4.1 (from the SDK) and 2.5.2 (standalone).

      I'm trying to get "smart tab" behavior from QtCreator with the following settings (in Tools > Options > C++ > Edit > General):

      Tab policy: Tabs Only
      Tab size: 3
      Indent size: 3
      Align continuation lines: With spaces

      I have attached a screenshot of the preview of Tools > Options > C++ > Edit > Alignment, illustrating exactly how smart tabs should look. However, when I actually write exactly the code shown in the preview, it uses tabs for alignment. This file is also attached.

      What I want is exactly what is shown in the preview... I'm just not getting it.

      Attachments

        1. Edit Code Style.png
          Edit Code Style.png
          43 kB
        2. main.cpp
          0.2 kB
        3. Projects Code Style Settings.png
          Projects Code Style Settings.png
          208 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            davschul David Schulz
            beacon11 Kyle Fazzari
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes