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. Code beautifier(s) ?
Forum Updated to NodeBB v4.3 + New Features

Code beautifier(s) ?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
10 Posts 5 Posters 1.4k Views 2 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

    QT code beautifier is presented as "experimental ' , gives vendor , however that links back to QT and not to source at all

    1. Is there an access to source code of the "experimental" plug-in?
      Can it be optioned ?

    2. Did somebody actually , physically , installed Artistic Style as plug -in?
      I have it downloaded but not sure how to install it in QT. as plug-in.
      After RTFM it looks as just copy the zipped file to f"plug-in" older (?) is all what is necessary.

    3. I am not sure how to option Artistic Style - maybe it includes instructions after I extract it.

    Cheers

    artwawA KroMignonK 2 Replies Last reply
    0
    • A Anonymous_Banned275

      QT code beautifier is presented as "experimental ' , gives vendor , however that links back to QT and not to source at all

      1. Is there an access to source code of the "experimental" plug-in?
        Can it be optioned ?

      2. Did somebody actually , physically , installed Artistic Style as plug -in?
        I have it downloaded but not sure how to install it in QT. as plug-in.
        After RTFM it looks as just copy the zipped file to f"plug-in" older (?) is all what is necessary.

      3. I am not sure how to option Artistic Style - maybe it includes instructions after I extract it.

      Cheers

      artwawA Offline
      artwawA Offline
      artwaw
      wrote on last edited by
      #2

      @AnneRanch ad 1) - the very first result from the google search for the query "qt creator code beautifier source code"

      https://code.woboq.org/qt5/qt-creator/src/plugins/beautifier/beautifierplugin.cpp.html

      For more information please re-read.

      Kind Regards,
      Artur

      A 1 Reply Last reply
      1
      • A Anonymous_Banned275

        QT code beautifier is presented as "experimental ' , gives vendor , however that links back to QT and not to source at all

        1. Is there an access to source code of the "experimental" plug-in?
          Can it be optioned ?

        2. Did somebody actually , physically , installed Artistic Style as plug -in?
          I have it downloaded but not sure how to install it in QT. as plug-in.
          After RTFM it looks as just copy the zipped file to f"plug-in" older (?) is all what is necessary.

        3. I am not sure how to option Artistic Style - maybe it includes instructions after I extract it.

        Cheers

        KroMignonK Offline
        KroMignonK Offline
        KroMignon
        wrote on last edited by
        #3

        @AnneRanch said in Code beautifier(s) ?:

        1. Is there an access to source code of the "experimental" plug-in?

        Sure, on Github:

        • Qt Creator project: https://github.com/qt-creator/qt-creator
        • the code beautifier plugin: https://github.com/qt-creator/qt-creator/tree/master/src/plugins/beautifier
        1. Did somebody actually , physically , installed Artistic Style as plug -in?

        Never used it.

        It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

        A 1 Reply Last reply
        1
        • artwawA artwaw

          @AnneRanch ad 1) - the very first result from the google search for the query "qt creator code beautifier source code"

          https://code.woboq.org/qt5/qt-creator/src/plugins/beautifier/beautifierplugin.cpp.html

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

          @artwaw said in Code beautifier(s) ?:

          qt creator code beautifier source code

          I guess my Mrs Google is setup to always point to Qt docs.
          Thanks

          1 Reply Last reply
          0
          • KroMignonK KroMignon

            @AnneRanch said in Code beautifier(s) ?:

            1. Is there an access to source code of the "experimental" plug-in?

            Sure, on Github:

            • Qt Creator project: https://github.com/qt-creator/qt-creator
            • the code beautifier plugin: https://github.com/qt-creator/qt-creator/tree/master/src/plugins/beautifier
            1. Did somebody actually , physically , installed Artistic Style as plug -in?

            Never used it.

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

            @KroMignon That that is very nice source of info , thanks.
            It covers at least three code beautifiesr..
            Still not clear

            1. is standard "experimental " beautifier using any of them?
            2. I still need to figure out how to add either all or specific one to QTCreator as plug-in.

            It looks as each needs to be as "external " application to be able to option it - if that is even possible.

            1 Reply Last reply
            0
            • A Offline
              A Offline
              Anonymous_Banned275
              wrote on last edited by
              #6

              @KroMignon said in Code beautifier(s) ?:

              https://github.com/qt-creator/qt-creator/tree/master/src/plugins/beautifier

              OK, this is i definitely NOT QT related .
              I manged to open the above github and selected ArtisticStyle beautifier source code.

              There is no specific repository to clone so I am stuck.

              I don;t think I want to clone the entire QTCreator , but I did not repository there either .

              Could use some assistance here - how to retrieve the source code .
              Copy each file separately??

              KroMignonK 1 Reply Last reply
              0
              • A Anonymous_Banned275

                @KroMignon said in Code beautifier(s) ?:

                https://github.com/qt-creator/qt-creator/tree/master/src/plugins/beautifier

                OK, this is i definitely NOT QT related .
                I manged to open the above github and selected ArtisticStyle beautifier source code.

                There is no specific repository to clone so I am stuck.

                I don;t think I want to clone the entire QTCreator , but I did not repository there either .

                Could use some assistance here - how to retrieve the source code .
                Copy each file separately??

                KroMignonK Offline
                KroMignonK Offline
                KroMignon
                wrote on last edited by
                #7

                @AnneRanch said in Code beautifier(s) ?:

                how to retrieve the source code .

                From GitHub, click on Code icon and select Download ZIP
                9f8e138c-1b45-4487-8b2c-cc9421dea829-image.png

                It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                JonBJ 1 Reply Last reply
                1
                • KroMignonK KroMignon

                  @AnneRanch said in Code beautifier(s) ?:

                  how to retrieve the source code .

                  From GitHub, click on Code icon and select Download ZIP
                  9f8e138c-1b45-4487-8b2c-cc9421dea829-image.png

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

                  @KroMignon
                  Your link/screenshot shows how to download the whole of the qt-creator sources, which includes the beautifier code as a sub-directory.

                  For the record, I think the OP's original question was: is it possible to download just a specific sub-folder, such as from https://github.com/qt-creator/qt-creator/tree/master/src/plugins/beautifier ? Certainly github does not offer a "download" button from that page. My conclusion is that one must --- or at least it is simplest --- download from the ancestor folder which does offer the Code button, but I should be interested in hearing if there is a simple way to download just a specified folder?

                  KroMignonK 1 Reply Last reply
                  0
                  • JonBJ JonB

                    @KroMignon
                    Your link/screenshot shows how to download the whole of the qt-creator sources, which includes the beautifier code as a sub-directory.

                    For the record, I think the OP's original question was: is it possible to download just a specific sub-folder, such as from https://github.com/qt-creator/qt-creator/tree/master/src/plugins/beautifier ? Certainly github does not offer a "download" button from that page. My conclusion is that one must --- or at least it is simplest --- download from the ancestor folder which does offer the Code button, but I should be interested in hearing if there is a simple way to download just a specified folder?

                    KroMignonK Offline
                    KroMignonK Offline
                    KroMignon
                    wrote on last edited by KroMignon
                    #9

                    @JonB said in Code beautifier(s) ?:

                    I should be interested in hearing if there is a simple way to download just a specified folder?

                    No, there is not such a possibility with GitHub, AFAIK!
                    Downloading the ZIP of the project will avoid you to have to clone the hole repository.
                    QtCreator project repository maybe very large, I think.

                    It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                    1 Reply Last reply
                    1
                    • VRoninV Offline
                      VRoninV Offline
                      VRonin
                      wrote on last edited by
                      #10

                      Bit of a zombie post but my experience with the beautifier plugin has been abismal. Since then I just witched to clang-format (part of the clang compiler but an indipendent tool) and set up a pre-commit hook in my git repository that runs clang-format. Much more practical and usable

                      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                      ~Napoleon Bonaparte

                      On a crusade to banish setIndexWidget() from the holy land of Qt

                      1 Reply Last reply
                      1
                      • 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