Removing blank lines in editor
Solved
General and Desktop
-
Is there an option and if so where - to remove blank lines in Qt editor?
I hope such option exists if the Qt editor "auto-indent" feature is based on "industry standard" code beautifier whose name escapes me - something about "ART..".
But I cannot find it in Qt docs.
Help will be appreciated. -
@AnneRanch
No, there is not. As supplied.It's easy enough to remove all blank lines in files outside of Creator if you wish. I believe you are Linux so
sed
would suffice.Or you can fetch and install a "beautifier" --- such as the Artistic Style you refer to --- via https://doc.qt.io/qtcreator/creator-beautifier.html, though note "You might have to build the tools from sources for some platforms.".
-