SAS keyboard shortcuts are very handy for efficient and speed code writing. Every SAS analyst must know every SAS keyboard shortcuts that are used in Mac OS X and Windows operating systems.

SAS Keyboard shortcuts in SAS Studio Workspace.

DescriptionSAS keyboard shortcut for Microsoft WindowsSAS keyboard Shortcut for Mac OS X
Zoom in.Ctrl + plus signCmd + plus sign
Zoom out.Ctrl + minus signCmd + minus sign
To reset Zoom stateCtrl + 0Cmd + 0
Maximize the view of the currently displayed tab or exit the maximised view.Alt + F11Fn + Shift + F11
Open pop-up menu in the navigation paneSelect item and

press Shift + F10

Select item and press Fn + Shift + F10
New SAS programCtrl + SCmd + S
Run CodeF3Fn + F3
Reset SAS sessiomF9Fn + F9
Download Log, result as HTMLCtrl + SCmd + S
Print SAS programCtrl + PCmd + P
Close tabAlt + 3Option + 3
Move the focus to Server Files & Folders section label.Alt + 1Option + 1
Move the focus to the label of the currently displayed secondary tabAlt + 2Option + 2
Move the focus to the label of the currently displayed primary tab and then navigate among all open tabs in the work area.Alt + 3Option + 3
Move the focus to the body of theCode tab on the currently displayed primary tab.Alt + 4Option + 4
Move the focus to the selected item in theLog tab on the currently displayed primary tab.Alt + 5Option + 5

SAS Keyboard Shortcuts for the code editor

DescriptionSAS Keyboard shortcut

for Windows

SAS Keyboard Shortcut

for Mac OS X

Open pop-upShift + F10Fn + Shift + F10
Create new snippet for SAS codeShift + Alt + ACmd + Option + A
Insert existing snippetAlt + lCmd + Option + l
Add or remove comment tagsCtrl + /Cmd + /
Display list of SAS keywords (Auto complete feature)Ctrl + SpacebarControl + Spacebar
Navigate between an autocomplete list and its associated Help pop-up window in the code editorTab, Shift + TabTab, Shift + Tab
Select AllCtrl + ACmd + A
CopyCtrl + CCmd + C
CutCtrl + XCmd + X
PasteCtrl + VCmd + V
UndoCtrl + ZCmd + Z
RedoCtrl + YCmd + Shift + Z
Find and ReplaceCtrl + FCmd + F
Move cursor to beginning of the word on the left of the cursorCtrl + left arrowOption + left arrow
Move the cursor to the beginning of the word on the right of the cursor.Ctrl + right arrowOption + right arrow
Move the cursor to the end of the word on the right of the cursorOption + Up arrow
Move the cursor to the beginning of the next paragraphOption + down arrow
Scroll editorCtrl + down arrow, Ctrl +Up arrow
Scrolls a page down or upPage Down, Page UpPage Down, Page Up
Move the cursor to the end of the lineEndCmd + right arrow
Move the cursor to the beginning of the lineHomeCmd+left arrow
Move to the bottom of the currently displayed section of the navigation paneEndFn + right arrow
Move to the top of the currently displayed section of the navigation paneHomeFn + left arrow
Move the cursor to the top of the documentCtrl + HomeCmd + up arrow
Move to the bottom of the currently displayed section of the navigation paneCtrl + EndCmd + down arrow
Select text to the left of the cursor character-by-characterShift + left arrowShift + left arrow
Select text to the right of the cursor character-by-characterShift + right arrowShift + right arrow
Select text from the cursor to the same location on the previous line.Shift + up arrowShift + up arrow
Select text from the cursor to the same location on the next line.Shift + down arrowShift + Down arrow
Delete the word on the left of the cursorCtrl + Backspace
Option+Delete (backward)
Note: If your keyboard does not contain a key for deleting backward, then press Fn+Delete.
Delete the word on the right of the cursorCtrl + Delete
Option+Delete (forward)
Note: If your keyboard does not contain a key for deleting forward, then press Fn+Delete.
Delete current line
Cmd+Delete (backward)
Note: If your keyboard does not contain a key for deleting backward, then press fn+delete.
Select a columnAlt + mouse buttonOption + left mouse button
Change case of selected textCtrl + Shift + UCmd + Shift + U
Clear WindowCtrl + ECmd + E
File WindowCtrl + Q
Exit SAS systemAlt + F4