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

qmlformat: Support formatting a subsection of a file

XMLWordPrintable

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes