Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-127306

qmlformat: Support formatting a subsection of a file

    XMLWordPrintable

Details

    Description

      Qt Creator has a function, "Edit" > "Advanced" > "Auto-format Selection".

      For *.cpp files, this function can format the selected block only, while leaving the rest of the file untouched.

      qmlformat currently only operates on the whole file. It would be nice if it could format, for example, the currently-selected JS block without touching the rest of the file. Then, qmlformat can be used as the backend for Qt Creator's "Auto-format Selection" function.

      Attachments

        Issue Links

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

          Activity

            People

              qtqmlteam Qt Qml Team User
              skoh-qt Sze Howe Koh
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes