HISE Logo Forum
    • Categories
    • Register
    • Login

    Feature Request: Add Code Formatting (Indentation)

    Scheduled Pinned Locked Moved Feature Requests
    4 Posts 3 Posters 311 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.
    • S
      sakorada
      last edited by

      What I Want:
      I'd like to see a feature that automatically helps with code indentation in HISE's script editor.

      Why It's Good:
      Makes code easier to read.
      Saves time when writing or editing code.
      What It Should Do:
      Auto-Indent: When I write a new line of code, it should automatically indent the line correctly.
      Correct All Indents: A button to fix the indents for the whole script at once.
      Let Me Choose: Let me pick how many spaces or tabs to use for indents.


      I don't know if there is some bug that causes my code to get the wrong Indentation ( not always ).

      Thanks

      d.healeyD S 2 Replies Last reply Reply Quote 1
      • d.healeyD
        d.healey @sakorada
        last edited by

        @sakorada If you are pasting from an external editor I've seen the tab spacing get messed up, but working directly in the HISE editor I haven't had any issues.

        A code beautifier would be nice, and a linter! but I don't think these should be priorities.

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

        SimonS 1 Reply Last reply Reply Quote 0
        • S
          sakorada @sakorada
          last edited by

          @sakorada
          Yes, it's kinda weird at my end
          I had to copy the code to VS code and Formating, and then copy it back to HISE.
          Pasting from an external editor worked best for me, didn't mess with Indentation . it's just happens when i'm typing and (deleting ).

          1 Reply Last reply Reply Quote 0
          • SimonS
            Simon @d.healey
            last edited by

            @d-healey This is the only mention of "linter" on the forum so far :D

            I know nothing about how much effort implementing a linter would be, but even the low hanging fruit would save me a lot of development time. Yesterday I spent ages debugging a condition where I accidentally went if (var = 2) instead of if (var == 2).

            I assume the ideal solution would be to adapt an existing linter, but maybe there's an easy way to do some basic checks until then?

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

            25

            Online

            1.7k

            Users

            11.8k

            Topics

            103.1k

            Posts