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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: Qt Creator 5.0.0
    • Fix Version/s: None
    • Component/s: Quick / QML Support
    • Labels:
      None
    • Platform/s:
      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

            Assignee:
            fawzi Fawzi Mohamed
            Reporter:
            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