TradeStation Development Environment

About Outlining

Outlining is a feature in the EasyLanguage Code Editor that allows you manage whether blocks of code collapse and expand.  This can help make long or complicated EasyLanguage documents easier to review and edit.  By default, outlining is enabled for Inputs, Variables, Begin-End statements, and comments within your code.   Clicking a dash on the left margin collapses the code and clicking the plus sign expands the code.   

 

[ Expand All ]
Outlining Settings

 

Outlining settings are accessed from the Outlining section of the Edit main menu or from the right-click shortcut menu.

The following describes the Outlining settings:

Hide Selection - Adds outlining to selected lines of EasyLanguage code with Auto Outlining is disabled.

Stop Hiding Current - Removes outlining from lines of code selected using Hide Selection.

Toggle Outlining - Expands or collapses the currently selected code if outlined.

Toggle All Outlining - Expands or collapses all outlined code.

Collapse to Definitions - Collapses all outlined code.

Stop Outlining - Removes outlining from all code for the current editing session.

Enable Outlining - When checked, indicates that code outlining is turned on with the ability to outline selected code blocks.

Auto Outlining - When checked, indicates that Inputs, Variables, Begin-End statements, and comments with be automatically outlined.

#Region-#EndRegion

 

The EasyLanguage reserved words #Region and #EndRegion allow you create a named custom outline section for EasyLanguage statements with the declared region.  After typing #Region, type an optional name.

 

Clicking the minus sign next to an expanded #Region collapses all the code through #EndRegion, displaying only the region name.