HISE Logo Forum
    • Categories
    • Register
    • Login

    autofix & code beautifier

    Scheduled Pinned Locked Moved General Questions
    12 Posts 5 Posters 172 Views
    Loading More Posts
    • 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.
    • d.healeyD
      d.healey
      last edited by d.healey

      This sounds very nice, is autofix a linter? :D

      Please fix compilation on Linux

      Thank you, working now :)

      alt text

      Libre Wave - Freedom respecting instruments and effects
      My Patreon - HISE tutorials
      YouTube Channel - Public HISE tutorials

      Christoph HartC 1 Reply Last reply Reply Quote 1
      • Christoph HartC
        Christoph Hart @d.healey
        last edited by

        @d-healey nope autofix is a context-aware spelling checker.

        autofix.gif

        Beautifier uses astyle for applying a coding style to the current selection (or scope if the selection is empty.

        d.healeyD clevername27C A 3 Replies Last reply Reply Quote 3
        • d.healeyD
          d.healey @Christoph Hart
          last edited by

          @Christoph-Hart said in autofix & code beautifier:

          a coding style

          Are we able to choose/edit the style or is it fixed?

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

          Christoph HartC 1 Reply Last reply Reply Quote 0
          • Christoph HartC
            Christoph Hart @d.healey
            last edited by

            This is the config file:

            Link Preview Image
            HISE/tools/astyle/astylerc.sh at develop · christophhart/HISE

            The open source framework for sample based instruments - HISE/tools/astyle/astylerc.sh at develop · christophhart/HISE

            favicon

            GitHub (github.com)

            Options are described here:

            Link Preview Image
            Artistic Style

            Artistic Style is a source code indenter, source code formatter, and source code beautifier for the C, C++, C# and Java programming languages.

            favicon

            (astyle.sourceforge.net)

            1 Reply Last reply Reply Quote 2
            • clevername27C
              clevername27 @Christoph Hart
              last edited by clevername27

              @Christoph-Hart Are you low-key just trying to come up with stuff to avoid fixing bugs? Be honest.🙈

              1 Reply Last reply Reply Quote 1
              • A
                aaronventure @Christoph Hart
                last edited by

                @Christoph-Hart said in autofix & code beautifier:

                Beautifier uses astyle for applying a coding style to the current selection (or scope if the selection is empty.

                How is this supposed to be used? I don't see anything on right click context menu when selecting code in the editor on macOS. It's not in the Tools dropdown either.

                clevername27C 1 Reply Last reply Reply Quote 0
                • clevername27C
                  clevername27 @aaronventure
                  last edited by

                  @aaronventure The red glyph will magically appear when it thinks there's a problem. For me, at least, there never is—but it always makes me think there is. 🌈

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    aaronventure @clevername27
                    last edited by

                    @clevername27 no, I meant the beautifier

                    Christoph HartC 1 Reply Last reply Reply Quote 1
                    • Christoph HartC
                      Christoph Hart @aaronventure
                      last edited by

                      @aaronventure said in autofix & code beautifier:

                      I meant the beautifier

                      There's a customizable shortcut (it defaults to Cmd+B, but you can change that in File->Edit shortcuts, under CodeEditor -> Beautify) . If you press that, it will beautify the code using the config file I posted above.

                      • if there is a selection, it will beautify the selection
                      • if nothing is selected, then it tries to find the scope that it should beautify by looking for the current function you're in.

                      beautify.gif

                      ustkU 1 Reply Last reply Reply Quote 3
                      • ustkU
                        ustk @Christoph Hart
                        last edited by

                        @Christoph-Hart CMD+B is a bold choice... 😛

                        Can't help pressing F5 in the forum...

                        A 1 Reply Last reply Reply Quote 0
                        • A
                          aaronventure @ustk
                          last edited by

                          @ustk wait till you see this
                          https://forum.hise.audio/topic/9354/trolled?_=1742923999985

                          d.healeyD 1 Reply Last reply Reply Quote 1
                          • d.healeyD
                            d.healey @aaronventure
                            last edited by

                            @aaronventure said in autofix & code beautifier:

                            @ustk wait till you see this
                            https://forum.hise.audio/topic/9354/trolled?_=1742923999985

                            Ha that's a good one. I think we should map compile to Alt+F4

                            Libre Wave - Freedom respecting instruments and effects
                            My Patreon - HISE tutorials
                            YouTube Channel - Public HISE tutorials

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post

                            18

                            Online

                            1.7k

                            Users

                            11.8k

                            Topics

                            102.5k

                            Posts