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

QML/JS formatter does not respect tab/space indentation settings

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Qt Creator 5.0.0
    • Quick / QML Support
    • None
    • Linux/X11

    Description

      When using a custom profile that forces tabs in QtCreator (Settings > QtQuick section > new profile > "Only tabulations"), the formatter always emits spaces for indentation.

      As far as I can see all the other QML editing features respect the setting (previews use tabs, typing my Tab key enters a tabylation in the editor, etc.). But the moment I hit the QML reformatter, all my tabs are changed back into spaces.

       

      I expect the formatter to respect the tab/space setting defined by the user.

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            ebatsin Bastien
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes