Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
Qt Creator 4.12.1
-
None
Description
When using string interpolation (that exists since ES6), the auto-format of Qt Creator clear all the string expression.
For example:
import QtQuick 2.14 import QtQuick.Window 2.14 Window { visible: true width: 640 height: 480 Component.onCompleted: { var string = "world"; console.log(`Hello ${string}`) } }
After auto-format the string becomes empty:
import QtQuick 2.14 import QtQuick.Window 2.14Window { visible: true width: 640 height: 480 Component.onCompleted: { var string = "world" console.log() } }