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

[Reg 16.0.1 -> 17.0.0b1] Custom Qt Quick code style is now ignored

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • Qt Creator 17.0.0-rc1
    • Qt Creator 17.0.0-beta1
    • Quick / QML Support
    • None
    • Windows 10 22H2
    • b9cc73b72 (17.0), a33578453 (17.0), f354b1aa5 (17.0), 056d7c023 (17.0)

    Description

      Problem 1: Built-in formatter
      I'm using the same (now-deprecated) built-in formatter for QML code, and I kept the style unchanged between Qt Creator 16.0.1 and 17.0.0-beta1:

       

      However, Qt Creator now seems to ignore the style settings. When I open a *.qml file in the code editor and press the [Tab] key...

      • Qt Creator 16.0.1 inserts a tab character (Expected)
      • Qt Creator 17.0.0-beta1 inserts 4 space characters (Not Expected)

       

      Problem 2: qmlformat (LSP)
      Next, I tried the new qmlformat functionality and applied UseTabs=true. Is that correct? I'm not sure (QTCREATORBUG-32964), but the preview pane seems to accept this setting:

       

      I used a Qt 6.8.3 kit and enabled qmlls. However, just like Problem 1, pressing the [Tab] key still produces 4 space characters instead of a tab character in Qt Creator 17.0.0-beta1.

      Attachments

        Issue Links

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

          Activity

            People

              semih.yavuz Semih Yavuz
              skoh-qt Sze Howe Koh
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes