Enabling/Disabling Code in PrimalScript 2009
PrimalScript 2009 includes a nice new feature that helps out in the script development process. You can now select a block of code, right click, and choose Disable Code.
This option will do three things to the selected block: it will comment out the selection, wrap the block in a “Disabled Code” region and collapse that region.
The code block can easily be re-enabled by right clicking on the collapsed block region tag and selecting Enable Code.
Enabling/Disabling code in this way is much quicker that simply commenting out code. Enclosing the block in a region eliminates having to reselect the block to uncomment it. Also, folding the region makes the remaining code easier to read and debug.
Tags: Code Management, PrimalScript 2009
January 5th, 2009 at 5:10 am
Excellent.. Nice feature.. I always loved the comment out hot-key feature in previous versions, but this is pretty cool as well..
Are you going to have a hot-key for this feature?
January 15th, 2009 at 12:30 pm
Hope so
January 22nd, 2009 at 10:39 am
I will check with the dev team to see what is in store for a hot key.
January 23rd, 2009 at 4:17 am
Ctrl+Alt+D = Disable code
Ctrl+Alt+E = Enable code