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

Add full formatting capabilities to selected range formatting

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • Some future release
    • Some future release
    • QML: Tooling
    • None

      Improve qmlls range formatting. Currently the formatter is performing only indentation and whitespace handling. We can add more option by working on line-by-line writer

      – QtC currently only supports auto-indent

      Can we achieve full formatting capability in selected range, would it be possible to merge fullformatting / rangeformatting in a single library and have an easier api like format(Node *, Range). 

      Some challanges of range formatting having the full formatting capability could be:

      – How to handle handle unbalanced selected range (can be potentially resolved by finding the common parent first, then start full formatting)

      – Full formatting relies on qmldom api, Comments are changing positions , this can conflict with the selected regions.

      – Can range formatter support Normalization mode?

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

            semih.yavuz Semih Yavuz
            semih.yavuz Semih Yavuz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes