Jamiras / RATools

Script interpreter for writing achievements for retroachievements.org
MIT License
48 stars 11 forks source link

[feature request] Regions and collapsible code #161

Open MagmarFire opened 4 years ago

MagmarFire commented 4 years ago

Certain IDEs--i.e., Visual Studio--have a feature where one can collapse blocks of code, such as if statements or user-defined #region tags. This can be useful if files become so large as to become unwieldy to scroll through and find other relevant blocks of code, especially in situations where code cannot easily be partitioned into multiple individual files, as is the case with RATools.

My general use case is that I like to create dictionaries of data to use as lookup tables for all manner of things, such as location IDs and items. They can be especially useful when they can be tailored for both Rich Presence and all achievements that make use of the same data. However, the dictionaries themselves can get rather large for certain games, so it would be nice if there were a way to collapse some of this code by default and then expand it, when needed.

PopovMark commented 6 months ago

Seconded. Both of my scripts are currently sitting at well over 1000 lines because I put freaking everything in there and there's a fair few line breaks to space it out and make it not hurt my eyes. Also makes the editor lag like hell.