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

Description SAS keyboard shortcut for Microsoft Windows SAS keyboard Shortcut for Mac OS X
Zoom in. Ctrl + plus sign Cmd + plus sign
Zoom out. Ctrl + minus sign Cmd + minus sign
To reset Zoom state Ctrl + 0 Cmd + 0
Maximize the view of the currently displayed tab or exit the maximised view. Alt + F11 Fn + Shift + F11
Open pop-up menu in the navigation pane Select item and

press Shift + F10

Select item and press Fn + Shift + F10
New SAS program Ctrl + S Cmd + S
Run Code F3 Fn + F3
Reset SAS sessiom F9 Fn + F9
Download Log, result as HTML Ctrl + S Cmd + S
Print SAS program Ctrl + P Cmd + P
Close tab Alt + 3 Option + 3
Move the focus to Server Files & Folders section label. Alt + 1 Option + 1
Move the focus to the label of the currently displayed secondary tab Alt + 2 Option + 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 + 3 Option + 3
Move the focus to the body of the Code tab on the currently displayed primary tab. Alt + 4 Option + 4
Move the focus to the selected item in the Log tab on the currently displayed primary tab. Alt + 5 Option + 5

SAS Keyboard Shortcuts for the code editor

Description SAS Keyboard shortcut

for Windows

SAS Keyboard Shortcut

for Mac OS X

Open pop-up Shift + F10 Fn + Shift + F10
Create new snippet for SAS code Shift + Alt + A Cmd + Option + A
Insert existing snippet Alt + l Cmd + Option + l
Add or remove comment tags Ctrl + / Cmd + /
Display list of SAS keywords (Auto complete feature) Ctrl + Spacebar Control + Spacebar
Navigate between an autocomplete list and its associated Help pop-up window in the code editor Tab, Shift + Tab Tab, Shift + Tab
Select All Ctrl + A Cmd + A
Copy Ctrl + C Cmd + C
Cut Ctrl + X Cmd + X
Paste Ctrl + V Cmd + V
Undo Ctrl + Z Cmd + Z
Redo Ctrl + Y Cmd + Shift + Z
Find and Replace Ctrl + F Cmd + F
Move cursor to beginning of the word on the left of the cursor Ctrl + left arrow Option + left arrow
Move the cursor to the beginning of the word on the right of the cursor. Ctrl + right arrow Option + right arrow
Move the cursor to the end of the word on the right of the cursor Option + Up arrow
Move the cursor to the beginning of the next paragraph Option + down arrow
Scroll editor Ctrl + down arrow, Ctrl +Up arrow
Scrolls a page down or up Page Down, Page Up Page Down, Page Up
Move the cursor to the end of the line End Cmd + right arrow
Move the cursor to the beginning of the line Home Cmd+left arrow
Move to the bottom of the currently displayed section of the navigation pane End Fn + right arrow
Move to the top of the currently displayed section of the navigation pane Home Fn + left arrow
Move the cursor to the top of the document Ctrl + Home Cmd + up arrow
Move to the bottom of the currently displayed section of the navigation pane Ctrl + End Cmd + down arrow
Select text to the left of the cursor character-by-character Shift + left arrow Shift + left arrow
Select text to the right of the cursor character-by-character Shift + right arrow Shift + right arrow
Select text from the cursor to the same location on the previous line. Shift + up arrow Shift + up arrow
Select text from the cursor to the same location on the next line. Shift + down arrow Shift + Down arrow
Delete the word on the left of the cursor Ctrl + 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 cursor Ctrl + 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 column Alt + mouse button Option + left mouse button
Change case of selected text Ctrl + Shift + U Cmd + Shift + U
Clear Window Ctrl + E Cmd + E
File Window Ctrl + Q
Exit SAS system Alt + F4