Forum

    • Register
    • Login
    • Search
    • Categories

    Folded 2.0

    Feature Requests
    4
    7
    98
    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.
    • MikeB
      MikeB last edited by MikeB

      this is a feature request for the editor.
      Which is getting better and better.

      To improve it a bit more the following idea.

      It would be nice if in addition to the existing code foldability a freely selectable one could be added.

      So you could start the first line with:

      //Start - whatever is written here.

      Here is the code and everything within this area can be folded.

      //End ----

      So everything between //Start - or //START and //End or //END is folded.

      Bildschirmfoto 2021-09-08 um 10.46.03.png

      This way you can group your lines better and more clearly.
      And you can determine yourself what is to be folded.
      I can then fold my own table of contents.

      Even lines that I don't need but take up a lot of space (variables, arrays) I can keep folded.

      //Start - All variables
      Or
      //Start - All FXPanels
      etc.

      Bildschirmfoto 2021-09-08 um 10.45.45.png

      The saving of lines of code and the new clarity would be enormous.

      bild4.jpg

      Maybe it is feasible when Christoph has gained a little distance from the editor programming horror. 🙂

      "One hour of trial and error can save 10 minutes of reading the manual."
      "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
      HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

      1 Reply Last reply Reply Quote 4
      • Christoph Hart
        Christoph Hart last edited by

        That's actually a good idea. However I would reuse the bookmark feature for this.

        So if you write a comment like this

        //! My Bookmark
        ljdlfksdf
        

        You can navigate to it by clicking on the mousewheel, but this could also be used to generate a folding item.

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

          @Christoph-Hart Yes, the advantage would be in the quick and clear grouping whose titles I can determine myself. Which, as I said, makes it possible to structure the many lines that cannot be folded at the moment, such as variables or arrays, neatly.

          I am very much looking forward to it

          "One hour of trial and error can save 10 minutes of reading the manual."
          "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
          HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

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

            @MikeB you can also just use brackets, they allow fold ability:

            // Variables
            {
            var y;
            var y;
            }
            

            I cannot help pressing F5 in the forum...
            Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

            MikeB 1 Reply Last reply Reply Quote 1
            • MikeB
              MikeB @ustk last edited by

              @ustk
              This leads to a crash with me (Build 1.Sept.21) and forces me to correct the error with an external editor.

              laf.js (3): const var declaration must be on global level {SW50ZXJmYWNlfGxhZi5qc3wyNnwzfDEx}
              

              "One hour of trial and error can save 10 minutes of reading the manual."
              "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
              HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

              ustk ulrik 2 Replies Last reply Reply Quote 2
              • ustk
                ustk @MikeB last edited by

                @MikeB Oh I see! I haven't really tried with declarations… only here and there in the code. this is kind of changing the scope, so not a good solution…

                I cannot help pressing F5 in the forum...
                Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

                1 Reply Last reply Reply Quote 0
                • ulrik
                  ulrik @MikeB last edited by

                  @MikeB Aha, well spotted!

                  Hise Develop branch
                  MacOs 13, Xcode 14.0.1
                  http://musikboden.se

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

                  4
                  Online

                  977
                  Users

                  6.6k
                  Topics

                  60.6k
                  Posts