<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Possible to fold all indented code in script editor?]]></title><description><![CDATA[<p dir="auto">I find navigating the HISE code editor a bit messy and I can't rely on the tools I'm used to using in Sublime like fold all code at indent level 1,2,3 etc.</p>
<p dir="auto">Is there a way to do this in HISE?<br />
Or are there other smart ways to make code navigation a bit easier?<br />
Like connecting it to an IDE or working with several script tabs?</p>
]]></description><link>https://forum.hise.audio/topic/8940/possible-to-fold-all-indented-code-in-script-editor</link><generator>RSS for Node</generator><lastBuildDate>Sat, 06 Jun 2026 19:19:34 GMT</lastBuildDate><atom:link href="https://forum.hise.audio/topic/8940.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 31 Jan 2024 14:55:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Possible to fold all indented code in script editor? on Fri, 02 Feb 2024 11:23:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/2118">@observantsound</a></p>
<p dir="auto">Here's a partial list  showing the sort of thing I (and it seems David) do:</p>
<pre><code>// THE SOUND SOURCES
include("VoiceModels.js");

// LAF //
include("LAF.js");

include("PatternPreLoader.js");

// THE HEADER CONTROLS
include("HeaderControls.js");

// MASTER CONTROLS
include("MasterControls.js");

// EDITOR CONTROLS
include("EditorControls.js");

// REALISM CONTROLS
include("RealismControls.js");

// THE STD CONTROLS  //
include("StdControls.js");

// SAMPLER AREA
include("Samplers.js");

// SYNTH OSCILATOR AREA
//include("Synths.js");

// ENVELOPES AREA //
include("GainEnvelopes.js");

//   FILTER AREA    //
include("Filters.js");

// FILTER ENVELOPES
include("FilterEnvelopes.js");

// TREM VIB AREA
include("VibTremSpace2.js");

// UNISON AREA
include("UnisonSpace.js");

// CONTROL AREA
include("ControlSpace2.js"); 

// FM AREA
include("FMSpace.js");


// LOOP PLAYER
//include("LoopPlayerAndBrowser.js");


// THE FX AREA //

include("SendEffects2.js");

include("MasterEffects2.js");


//include("update.js");

// the ARP
include("Arp.js");

// the CHORD PLAYER
include("chordplayer.js");

/// the RANGE SETTERS
include("RangeSetters.js");

// SETTINGS //
include("settingsspace.js");

// SOUND BROWSER //
//include("SoundDataLoader.js");
//include("SoundBrowser.js");
include("VoiceExpansions.js");
include("voicetaggingSelector.js");



// SOUND randomisation
include("SoundRandomiser.js");


// Authorisation &amp; Demo 
include("Authorisation.js");

// THE GLOBAL MODULATORS  //
include("GlobalModulators.js");

//PRESET BROWSER
include("PresetBrowser.js");
include("presettagging01.js");

//PATHS
include("Paths.js");

</code></pre>
]]></description><link>https://forum.hise.audio/post/75026</link><guid isPermaLink="true">https://forum.hise.audio/post/75026</guid><dc:creator><![CDATA[Lindon]]></dc:creator><pubDate>Fri, 02 Feb 2024 11:23:43 GMT</pubDate></item><item><title><![CDATA[Reply to Possible to fold all indented code in script editor? on Fri, 02 Feb 2024 09:25:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/2118">@observantsound</a> said in <a href="/post/75019">Possible to fold all indented code in script editor?</a>:</p>
<blockquote>
<p dir="auto">Is it possible to have one file for all my Lafs, one file for my PaintRoutines, one file for declarations etc. ?</p>
</blockquote>
<p dir="auto">Yes but beyond one file for laf i wouldn't advise that approach.</p>
<p dir="auto">Split your project code by functionality.  If you have code for your preset browser, for example, put it in a file called PresetBrowser.js and everything associated with the preset browser ( paint routines,  component references,  laf, etc) goes in that file.  This will make it really easy to find things in the future.  If there's a problem with the preset browser you'll know exactly where to look.</p>
]]></description><link>https://forum.hise.audio/post/75020</link><guid isPermaLink="true">https://forum.hise.audio/post/75020</guid><dc:creator><![CDATA[David Healey]]></dc:creator><pubDate>Fri, 02 Feb 2024 09:25:25 GMT</pubDate></item><item><title><![CDATA[Reply to Possible to fold all indented code in script editor? on Fri, 02 Feb 2024 09:19:57 GMT]]></title><description><![CDATA[<p dir="auto">@d-healey Thanks for the tips!<br />
I might need to adjust my workflow then.</p>
<p dir="auto">I was following some of your tutorials for interface design and I quickly lost track of what is where.</p>
<p dir="auto">This is how I like to structure my code. I use fold on indent level x many times to quickly find what I'm looking for.<br />
I also don't feel comfrotable with using the { } yet.<br />
Sure it might make some things easy to read but it also makes the vertical space code needs very long.</p>
<p dir="auto">Is it possible to have one file for all my Lafs, one file for my PaintRoutines, one file for declarations etc. ?</p>
<pre><code>// ------------------------------------------------
// SET PAINT ROUTINES
// ------------------------------------------------
inline function A_PaintRoutine(g){ 	

inline function B_PaintRoutine(g){ 	

inline function C_PaintRoutine(g){ 	
 	
</code></pre>
]]></description><link>https://forum.hise.audio/post/75019</link><guid isPermaLink="true">https://forum.hise.audio/post/75019</guid><dc:creator><![CDATA[observantsound]]></dc:creator><pubDate>Fri, 02 Feb 2024 09:19:57 GMT</pubDate></item><item><title><![CDATA[Reply to Possible to fold all indented code in script editor? on Wed, 31 Jan 2024 15:31:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/2118">@observantsound</a></p>
<blockquote>
<p dir="auto">Or are there other smart ways to make code navigation a bit easier?</p>
</blockquote>
<p dir="auto">Write less code per file. Use namespaces and separate your code into different files. The majority of my scripts rarely exceed 300 lines, which is easily manageable. You can view the scripts in Rhapsody to see how I manage them in my projects - <a href="https://codeberg.org/LibreWave/Rhapsody" rel="nofollow ugc">https://codeberg.org/LibreWave/Rhapsody</a></p>
<p dir="auto">Pressing CTRL+R will open the bookmarks in your script so you can quickly jump to different parts.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/2118">@observantsound</a> said in <a href="/post/74837">Possible to fold all indented code in script editor?</a>:</p>
<blockquote>
<p dir="auto">fold all code at indent level 1,2,3</p>
</blockquote>
<p dir="auto">Try to have fewer indent levels. It will (generally) result in cleaner code. <a href="https://youtu.be/CFRhGnuXG-4?si=EqroDdGRTIwbTHPa" rel="nofollow ugc">https://youtu.be/CFRhGnuXG-4?si=EqroDdGRTIwbTHPa</a></p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/2118">@observantsound</a> said in <a href="/post/74837">Possible to fold all indented code in script editor?</a>:</p>
<blockquote>
<p dir="auto">working with several script tabs?</p>
</blockquote>
<p dir="auto">I always have multiple tabs open. If you get creative with a custom layout you can get all kinds of nice setups.</p>
<p dir="auto"><img src="/assets/uploads/files/1706713337610-2f858418-d939-4457-9503-4e8738beccaf-image.png" alt="2f858418-d939-4457-9503-4e8738beccaf-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.hise.audio/post/74842</link><guid isPermaLink="true">https://forum.hise.audio/post/74842</guid><dc:creator><![CDATA[David Healey]]></dc:creator><pubDate>Wed, 31 Jan 2024 15:31:56 GMT</pubDate></item></channel></rss>