-
Task
-
Resolution: Unresolved
-
P2: Important
-
Some future release
-
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?
- depends on
-
QTBUG-92869 improve QML custom lexer to be restartable and use it for line by line indentation
-
- Closed
-
- is required for
-
QTBUG-119964 New QML LSP features (6.8)
-
- Closed
-
- resulted from
-
QTCREATORBUG-26602 Integration of "qmlformat" in QtCreator
-
- Open
-