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

"Tools -> QML/JS -> Reformat File" does not honor "Qt Quick -> Code Style" tab size

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • Qt Creator 4.5.0-beta1
    • Qt Creator 3.1.2
    • Quick / QML Support
    • None
    • Windows 8.1 64-bit

    Description

      Even though the tab size and indent size in "Qt Quick -> Code Style" are not 4. "Tools -> QML/JS -> Reformat File" still uses 4 spaces to reformat file.

      To reproduce:

      1. Open Tools -> Options
      2. Click "Qt Quick" on the left.
      3. Click "Copy..." button on the right. Click OK.
      4. Click "Edit..." button on the right.
      5. Change "Tab size" and "Indent size" to 2.
      6. Click OK and OK to go back to editor.
      7. Open a QML file.
      8. Click "Tools -> QML/JS -> Reformat File". File is reformatted to tab size of 4 spaces.

      Attachments

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

        Activity

          People

            mabenell Marco Benelli
            fxam fxam
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes