SyntaxHighlighter

Tuesday, May 22, 2012

Enhanced Editor Shortcut Keys

The SAS Enhanced Editor contains many shortcut keys that can improve productivity. See the below table for a list of some of the more powerful, yet often unknown commands and their related keys.

Shortcut Keys
Bookmark (toggle) line Ctrl + F2
Comment selection with comments Ctrl + /
Context Menu Shift + F10
Convert selected to lowercase Ctrl + Shift + L
Converted selected to uppercase Ctrl + Shift + U
Go to next marked line F2
Go to previous marked line Shift + F2
Indent selected text TAB
Move to matching brace/paren Ctrl + [
Move to matching DO/END keyword Alt + [
Rectangular selection Alt + left mouse button (LMB)
Remove trailing blanks (white spaces) Ctrl + Shift + W
Select all Ctrl + A
Uncomment selection with line comments Ctrl + Shift + /
Unindent selection Shift + Tab

Examples

Bookmarking - select the desired line and use the Ctrl + F2 keys to bookmark the line (a cyan image will appear to left of the code). Now if you scroll anywhere else in the file you can quickly return to this bookmark by using the F2 key while Shift + F2 takes you to the previous mark if you have multiple bookmarks. Press Ctrl + F2 again to remove a bookmark.

Rectangular Selection - Use the combination of the Alt + LMB to define a rectangular selection. Notice in the below example that we are able to select the table prefix and easily remove that reference using this technique.

Reference: Doing More with the SAS Display Manager: From Editor to View Table - Options and Tools You Should Know by Art Carpenter.

No comments:

Post a Comment