# Collapse Down Sections Of Code in Script Editors

**URL:** <https://forum.inductiveautomation.com/t/collapse-down-sections-of-code-in-script-editors/5605>\
**Category:** Ignition\
**Created:** [December 20, 2012, 3:29pm UTC](https://forum.inductiveautomation.com/t/collapse-down-sections-of-code-in-script-editors/5605 "2012-12-20T15:29:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [December 20, 2012, 3:29pm UTC](https://forum.inductiveautomation.com/t/collapse-down-sections-of-code-in-script-editors/5605/1 "2012-12-20T15:29:18Z")

</div>

I just recently started using NotePad++ and that has an awesome feature when dealing with any kind of code where you can collapse down any logic or branching statements to make the code cleaner and easier to follow. That would be a really nice feature to include into the script editing windows in Ignition, it makes things much easier to follow along with.

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/1e0c9600f3d932b0c88b07cff19cea5903aadb52.png)

---

<div class="post-metadata">

**Author:** ![cmaynes](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmaynes/32/6852_2.png) [@cmaynes](https://forum.inductiveautomation.com/u/cmaynes)\
**Post date:** [January 19, 2018, 5:59pm UTC](https://forum.inductiveautomation.com/t/collapse-down-sections-of-code-in-script-editors/5605/2 "2018-01-19T17:59:54Z")

</div>

Has there been any movement on this?

This feature is quite important when coding.

What would also be amazing is if we could set breakpoints, but that is probably asking for a bit too much from Ignition.

---

<div class="post-metadata">

**Author:** ![PerryAJ](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/perryaj/32/3281_2.png) [@PerryAJ](https://forum.inductiveautomation.com/u/PerryAJ)\
**Post date:** [January 19, 2018, 6:58pm UTC](https://forum.inductiveautomation.com/t/collapse-down-sections-of-code-in-script-editors/5605/3 "2018-01-19T18:58:41Z")

</div>

Code folding and better text/code editor in general is something we’re planning to support. We don’t have a timeline right now, but there has definitely been progress here. The Designer’s Script Console currently utilizes an example of some of this improved functionality that includes things like folding, better highlighting/completion, color themes, etc.

![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/a/a28faaa2b6723e3f225708c0720bfbdfa299c118.png)

Breakpoint debugging is something we’d love to support, but there are some significant technical hurdles to overcome to make that happen. As a result, can’t offer any sort of commitment there, but if it were to come to the platform it would almost certainly happen after the general editor improvements have been refined and rolled out across the designer.

-Perry

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [January 20, 2018, 8:16am UTC](https://forum.inductiveautomation.com/t/collapse-down-sections-of-code-in-script-editors/5605/4 "2018-01-20T08:16:36Z")

</div>

@PerryAJ, as for me, the most usefull feature for Ignition script IDE would **be auto-completion for user shared/project packages and functions** , and in this case, if possible to show function parameters and comments if a comments rules had been followed for theses functions.  
It will enable us to gain a lot of times for scriting and avoid typo mistake.

---

<div class="post-metadata">

**Author:** ![PerryAJ](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/perryaj/32/3281_2.png) [@PerryAJ](https://forum.inductiveautomation.com/u/PerryAJ)\
**Post date:** [January 22, 2018, 3:47pm UTC](https://forum.inductiveautomation.com/t/collapse-down-sections-of-code-in-script-editors/5605/5 "2018-01-22T15:47:06Z")

</div>

Agreed this would be a nice feature. Can’t commit to it getting done, but we’ll investigate this when we start to look at scripting improvements.

---

<div class="post-metadata">

**Author:** ![pdibenedetto](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pdibenedetto/32/6364_2.png) [@pdibenedetto](https://forum.inductiveautomation.com/u/pdibenedetto)\
**Post date:** [January 22, 2018, 5:27pm UTC](https://forum.inductiveautomation.com/t/collapse-down-sections-of-code-in-script-editors/5605/6 "2018-01-22T17:27:39Z")

</div>

> [@mazeyrat](#):
>
> @PerryAJ, as for me, the most usefull feature for Ignition script IDE would be auto-completion for user shared/project packages and functions, and in this case, if possible to show function parameters and comments if a comments rules had been followed for theses functions.It will enable us to gain a lot of times for scriting and avoid typo mistake.

It seems that for a while this was developed, I suppose for testing purpose, and with limited funcionality (no function comments) on the script console, in the Interactive Interpreter section only (no in the Multiline Buffer section).

At least I saw it, back in June 2013, and I commented it in this [feature request](http://ideas.inductiveautomation.com/forums/255378-ignition-features-and-ideas/suggestions/6509647-script-editor-improvments).

Hope this get done sometime.
