Details
-
Suggestion
-
Resolution: Unresolved
-
P2: Important
-
6.5.1
-
None
Description
Currently, qmlformat combines manually broken lines into a single line, which makes the code hard to read if the line is too long. It would be great if qmlformat could support column width limit and automatically break the line into multiple lines if it exceeds the limit, similar to how clang-format works. We are interested in using qmlformat but cannot do so until this issue is resolved, it's a show stopper.
Attachments
Issue Links
- is required for
-
QTBUG-116755 qmlformat: creates lines over 100 characters long
- In Progress
-
QTBUG-119967 qmlformat: reach feature parity with QtC built-in formatter
- Reported
- relates to
-
QTBUG-114804 Add features of Qt Creator built-in QML formatter to qmlformat
- Closed
-
QTBUG-127435 qmlformat: Add js Promise formatting support
- Reported
-
QTBUG-111937 It would be nice if qmlformat can have line wrapping and spaces in blocks
- Reported
Gerrit Reviews
For Gerrit Dashboard: QTBUG-113590 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
602928,8 | qmlformat: separate reindentAndSplit's concerns | dev | qt/qtdeclarative | Status: NEW | +2 | 0 |
602930,9 | qmlformat: allow customizable line break | dev | qt/qtdeclarative | Status: NEW | 0 | 0 |
603520,8 | qmlformat: use indenting line writer if column break is in use | dev | qt/qtdeclarative | Status: NEW | 0 | 0 |
604001,7 | qmlformat: test line break support for colon token | dev | qt/qtdeclarative | Status: NEW | 0 | 0 |
605364,4 | qmlformat: extend delimiters | dev | qt/qtdeclarative | Status: NEW | 0 | 0 |
605365,5 | qmlformat: test linebreaks for binary operators | dev | qt/qtdeclarative | Status: NEW | 0 | 0 |
605366,6 | qmlformat:refactor | dev | qt/qtdeclarative | Status: NEW | 0 | 0 |
604014,2 | qmlformat: add line breaks for arithmetic operators | dev | qt/qtdeclarative | Status: ABANDONED | 0 | -1 |