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

Tabs/spaces indentation settings conflict

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • Qt Creator 4.1.0-beta1
    • C/C++/Obj-C++ Support
    • None
    • Kubuntu 16.04, x86_64.

    Description

      QtCreator has two places where the user has to select the indentation mode: tabs or spaces. One place is in the Text Editor/Behavior tab and the other is in C++/Code Style settings. When these two settings are out of sync it is unclear what QtCreator will do (in my case, when the code style was using spaces and the text editor was using tabs - tabs were used) and in 50% cases it will do not what the user intended.

      Besides the confusion, the two places make it unnecessarily complicated to change from one mode to the other e.g. when switching between projects with different coding policies. It's easy to forget to change the setting in one place and then suddenly discover that the code is mangled with incorrect indents all over it.

      I suggest leaving indentation settings in only one place with an easy way of switching between the modes.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            lastique Andrey Semashev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes