Details
-
Bug
-
Resolution: Duplicate
-
P3: Somewhat important
-
None
-
Qt Creator 4.9.0
Description
When using the format QML option it can modify QML to be invalid. For example the following snippet will change from:
function swap(from, to) { for (var i = 0; i < 10; ++i) { console.log(i) } }
to
function swap(fromto) {
for (; i < 10; ++i) {
console.log(i)
}
}
Attachments
Issue Links
- duplicates
-
QTCREATORBUG-22326 Creator breaks JavaScript code when auto-formatting QML or JS files.
- Closed