Have you ever used the SAS editor, to write your code, and wished for a real powerfull text editor? Well with the SAS Enhanced Editor there are some undocumented shortcuts that can really speed up your code writing.
Here are a few shortcuts and their descriptions:
1) Comment selected section of code with Line Comments press: [red]CTL+/[/red] 2) Uncomment selected section that has Line Comments press: [red]CTL+SHIFT+/[/red] 3) Convert selected section to lowercase press: [red]CTL+SHIFT+L[/red] 4) Convert selected section to uppercase press: [red]CTL+SHIFT+U[/red] 5) Indent selected section press: [red]TAB[/red] 6) Un-indent selected section press: [red]SHIFT+TAB[/red] 7) To move curser to the matching DO/END statement press: [red] a) ALT+[
b) ALT+]
c) ALT+9
d) ALT+0[/red]
8) Delete trailing white space from selected text(from line if not selected) press: [red]CTL+SHIFT+W[/red]
9) Collapse all folding blocks press: [red]ALT+CTL+ -[/red]
10) Expand all folding blocks press: [red]ALT+CTL+ +[/red]
11) Go to line number press: [red]CTL+G[/red]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.