QtCreator QtQuick QML/JS Editing auto format on save removes pragma value
Unsolved
Qt Creator and other tools
-
I turned on "Enable auto format on save" for QML/JS Editing of QtQuick in QtCreator settings.
One of my QML files starts with
pragma ComponentBehavior: Bound
When I save the QML file, it will be reformatted. But the value "Bound" is removed at the same time.
So, now the first line looks like:
pragma ComponentBehavior
... and gives me an error.
Is this an error with QtCreator or something wrong at my side?
QtCreator: version: 15.0.0
Qt 6.8.1 MinGW 64-bit
Windows 11, up-to-date -
Hi and welcome to devnet,
That looks rather like a bug.
Did you already check the bug report system for something similar ?