I know I can collapse/expand a code block by clicking on the - or + sign in the editors margin.
However, for the case of large code blocks, navigating to the -/+ is a pain.
Does the enhanced editor have a command or shortcut key to
- collapse the code block that the cursor is in?
- jump to top or bottom of current code block the cursor is in?
Thanks
If your cursor is inside (or before) a block try hold the Alt key and press the minus key from the numeric key pad, or Alt plus + sign from numeric pad to expand.
With the Enhanced Editor as the active window select Tools>Options>Enhanced Editor Keys. You can select a topic, this would be in Code Folding, or All keys.
You will find options not assigned key strokes by default and you can set one for options you may want.
Or record a SAS keyboard macro to execute multiple things at once. These macros behavior more like the Microsoft applications macros and not the SAS macro language (shh! don't want to confuse folks)
If your cursor is inside (or before) a block try hold the Alt key and press the minus key from the numeric key pad, or Alt plus + sign from numeric pad to expand.
With the Enhanced Editor as the active window select Tools>Options>Enhanced Editor Keys. You can select a topic, this would be in Code Folding, or All keys.
You will find options not assigned key strokes by default and you can set one for options you may want.
Or record a SAS keyboard macro to execute multiple things at once. These macros behavior more like the Microsoft applications macros and not the SAS macro language (shh! don't want to confuse folks)
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.