Automatic new lines in qt design studio
-
In qt design studio I have a snippet of code
Connections { target: sceneButton onPressed: console.log(model.sceneName + " Selected") }
when I save the .ui.qml file it automatically changes the code to
Connections { target: sceneButton onPressed: console.log( model.sceneName + " Selected") }
this is, in my opinion, hideous. However when I go into the settings for the automatic edits on saving and deactivate every one, the problem persists. s there any way to stop design studio doing whatever this is? Thank you.
EDIT: I wanted to bump this topic with a slightly different question.
Is there a way to strop the automatic code formatting altogether?
By company places comments at the top of files with file data, design studio wants to put two new lines before these comments. This is stupendously terrible. Is there any way to just turn of ALL the automatic code formatting instead?
-
This is a bug in the code formater for QML/JavaScript and should be fixed.
-
Has it been logged as a bug?
-
I wanted to bump this topic with a slightly different question.
Is there a way to strop the automatic code formatting altogether?
By company places comments at the top of files with file data, design studio wants to put two new lines before these comments. This is stupendously terrible. Is there any way to just turn of ALL the automatic code formatting instead?
-
At this point in time .ui.qml files are always formatted. We can consider adding an option, but I would prefer to fix the code formatter. Can you file a bug report for this?