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

Failure to align continuation lines with spaces

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important 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

      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.

        1. Edit Code Style.png
          43 kB
          user-e3069
        2. main.cpp
          0.2 kB
          user-e3069
        3. Projects Code Style Settings.png
          208 kB
          user-e3069
        For Gerrit Dashboard: QTCREATORBUG-7994
        # Subject Branch Project Status CR V

            davschul David Schulz
            jirauser12252 user-e3069 (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes