BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
RichardDeVen
Barite | Level 11

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 

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

 

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)

View solution in original post

1 REPLY 1
ballardw
Super User

 

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)

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 592 views
  • 3 likes
  • 2 in conversation