Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Removing blank lines in editor
Qt 6.11 is out! See what's new in the release blog

Removing blank lines in editor

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 796 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by
    #1

    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.

    JonBJ 1 Reply Last reply
    0
    • A Anonymous_Banned275

      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.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @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.".

      A 1 Reply Last reply
      3
      • JonBJ JonB

        @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.".

        A Offline
        A Offline
        Anonymous_Banned275
        wrote on last edited by
        #3

        @JonB Thanks for the references. Funny - I did not want to ask Mrs Google for "code beautifier" . Was thinking it is not proper "technical term".

        1 Reply Last reply
        0
        • JonBJ JonB referenced this topic on

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved