Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. External code beautifier / custom indentation .
Forum Updated to NodeBB v4.3 + New Features

External code beautifier / custom indentation .

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 2 Posters 1.7k 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.
  • K Offline
    K Offline
    kriu
    wrote on last edited by
    #1

    It's possible to use an external third part program to format the code in QtCreator ? If yes, how ?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      Lykurg
      wrote on last edited by
      #2

      Hi,

      you can use the new Beautifier plugin if you want to use Clang-format, Uncrustify or Artistic Style. Other tools can only be invoked by a "External Tool" (see settings -> environment).

      What code beautifier you are like to use?

      Cheers

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kriu
        wrote on last edited by
        #3

        Thanks but I can't see the point of that plugin, it's not giving me automatic indentation, there is not shortcut to it, and it's basically yet another menu option.

        I was hoping for something more pragmatic and viable.

        1 Reply Last reply
        0
        • L Offline
          L Offline
          Lykurg
          wrote on last edited by
          #4

          Automatic indention: No, but that isn't the purpose of source beautifiers.
          As for the shortcut: options -> environment -> keyboard
          Main benefit: the beautified code is fully integrated into the undo framework and can be called on unsaved files. (In opposite to calling external tools.)

          Normally I write my code, living with the auto indent provided by Qt, and then trigger my short cut quite often. So all other styles, I set up, get respected. Works for me.

          1 Reply Last reply
          0

          • Login

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