几乎每个软件都有自己的快捷键(又叫快速键或热键)。使用快捷键有时候为了方便、减少鼠标点击,有时候可以加快操作速度。国外有个有趣的网站,专门收集各类通用软件的快捷键,由于SAS不够大众,没有收录SAS的快捷键。当然SAS也有许多自己的快捷键。其中我最常用的键有F3(运行代码)、F6(查看log信息)、Ctrl + / (注释代码)、Ctrl + Shift + / (取消代码注释)等等,用的不是非常多,多了记不住,但是少了又觉得缺少些什么。当然不同的人有不同的使用习惯,想必大家都有自己偏好的快捷键,这里就列出SAS9.2全部的快捷键,一共有4类,大家可以根据自己的需要来查找合适自己的快捷键。
查找的时候需要说明的有许多都是和微软系统通用的快捷方式,因此很多微软系统中熟悉的快捷键可以试试。下面红色加粗部分的快捷键,是我或SAS公司认为最有用的快捷键。大家可以选择性的看看。
SAS系统一共下面有4类快捷键,其中部分有重复, 第一类可自定义。
一,微软系统下默认的设定
Default Key Definitions under Windows
这个可以点F9快捷键或者命令框敲keys都可以跳出这个快捷键窗口。作用部分为空的是未定义,可以自己定义这些空白的作用。
快捷键 | 作用 | 快捷键 | 作用 |
F1 | Help 跳出帮助文件 | Alt + F1 | |
F2 | reshow | Alt + F2 | |
F3 | End 运行代码 | Alt + F3 | |
F4 | Recall 调回提交的代码,非增强型编辑器有效。 | Alt + F11 | |
F5 | Wpgm | Alt + F12 | |
F6 | Log 日志窗口 | Ctrl + B | libref 显示数据逻辑库的目录 |
F7 | Output 结果窗口 | Ctrl + D | Dir 显示数据逻辑库的目录 |
F8 | zoom off; submit | Ctrl + E | Clear 清除当前窗口如output,log |
F9 | keys 默认快捷键 | Ctrl + G | |
F11 | command focus | Ctrl + H | Help 帮助 |
F12 | Ctrl + I | Options SAS系统选项设置 | |
Shift + F1 | Subtop | Ctrl + J | |
Shift + F2 | Ctrl + K | cut (Program Editor only) | |
Shift + F6 | Ctrl + L | Log 日志窗口 | |
Shift + F7 | Left | Ctrl + M | Mark 标记,增强型编辑器不支持 |
Shift + F8 | Right | Ctrl + Q | Filename 当前文件 |
Shift + F9 | Ctrl + R | Rfind 查找 | |
Shift + F10 | Wpopup 鼠标右键 | Ctrl + T | Title 标题内容 |
Shift + F11 | Ctrl + U | unmark | |
Shift + F12 | dmcopylsv | Ctrl + W | access Explorer window 资源管理器 |
Ctrl + F1 | Ctrl + Y | ||
Ctrl + F2 | RMB | Wpopup 鼠标右键 | |
Ctrl + F3 | Shift + RMB | ||
Ctrl + F11 | Ctrl + RMB | ||
Ctrl + F12 | MMB | 鼠标中键,未定义 | |
Shift+ MMB | |||
Ctrl + MMB |
二 打印预览快捷键
Keyboard Shortcuts within Print Preview
快捷键 | 作用 |
Alt + N | Next page or Page Down 翻后页 |
Alt + P | Previous page or Page Up 翻前页 |
Alt + Z | Zoom 缩小 |
Alt + H | Help 帮助文件 |
Alt + R | Print 打印 |
Alt + C orAlt + F4 | Close the window 关闭窗口 |
三 增强型编辑器中的快捷键
Keyboard Shortcuts within the Enhanced Editor
红色加粗为SAS公司认为最有用的快捷键。
类别 | 快捷键 | 作用 |
缩写Abbreviation这个东东很少见,目前还不知道怎么用。 | Ctrl + Shift + A | Add a new abbreviation |
Alt + F1 + No Selection | Bring up word tip | |
Esc | Hide the current word tip | |
代码Code Folding | Alt + Ctrl + Number pad – | Collapse all folding blocks收缩代码块 |
Alt + Number pad – | Collapse current line | |
Alt + Ctrl + Number pad + | Expand all folding blocks 扩展代码块 | |
Alt + Number pad + | Expand current line | |
Alt + Number pad * | Toggle expand current line | |
命令/宏支持Command/Macro Support | Ctrl + Shift + M | Add or change macros |
Ctrl + F1 | Execute the last recorded macro执行最后一个记录中的宏 | |
Alt + F8 | Play a command/macro | |
Alt + Shift + R | Start/Complete macro | |
编辑Edit | Ctrl + C | Copy selection 复制 |
Ctrl + X | Cut selection 剪切 | |
Delete | Delete current character 删除 | |
Backspace or Shift + Backspace | Delete previous character | |
Ctrl + Delete | Delete to next word start | |
Ctrl + Backspace | Delete to previous word start | |
Enter | Insert a carriage return | |
Ctrl + V | Paste from clipboard 粘贴 | |
Ctrl + YAlt + Shift + Backspace | Redo | |
Ctrl + ZAlt + Backspace | Undo | |
帮助Help | place the insertion point within a procedure name and press F1 | Get Help for a SAS procedure查找对应帮助主题 |
F1 | Context Help 帮助文件 | |
行标记Line Markers | F2 | Go to the next marked line |
Shift + F2 | Go to the previous marked line | |
Ctrl + F2 | Toggle marker on the current line | |
导航Navigation | Ctrl + G | Go to line (interactive) |
Ctrl + Page UpCtrl + Home | Move cursor to the top of the file | |
Ctrl + Page DownCtrl + End | Move cursor to the bottom of the file | |
Down | Move cursor down | |
Page Down | Move cursor down a page | |
Left | Move cursor left | |
Right | Move cursor right | |
Home | Move cursor to beginning of line | |
End | Move cursor to end of line | |
Ctrl + [ Ctrl + ] | Move cursor to matching brace/parentheses移动光标匹配 括号 | |
Alt + [ Alt + ] | Move cursor to matching DO/END keyword 移动光标匹配DO/END | |
Alt + Right | Move cursor to next case change移动光标到下一个大小写转换处 | |
Ctrl + Right | Move cursor to next word start | |
Alt + Left | Move cursor to previous case change移动光标到上一个大小写转换处 | |
Ctrl + Left | Move cursor to previous word start | |
Up | Move cursor up | |
Page Up | Move cursor up a page | |
Alt + Up | Move cursor to the first visible line | |
Alt + Down | Move cursor to the last visible line | |
Ctrl + Up | Scroll screen down | |
Ctrl + Down | Scroll screen up | |
Option Setting | Insert | Toggle insert/overwrite mode |
选择Selection | Shift + Left | Extend selection character left |
Shift + Right | Extend selection character right | |
Shift + Down | Extend selection down | |
Shift + Page Down | Extend selection down a page | |
Ctrl + Shift + HomeCtrl + Shift + Page Up | Extend selection to beginning of document | |
Shift + Home | Extend selection to beginning of line | |
Ctrl + Shift + EndCtrl + Shift + Page Down | Extend selection to end of document | |
Shift + End | Extend selection to end of line | |
Alt + Shift + Right | Extend selection to next case change | |
Alt + Shift + Left | Extend selection to previous case change | |
Shift + Up | Extend selection up | |
Shift + Page Up | Extend selection up a page | |
Ctrl + Shift + Left | Extend selection to previous word start | |
Ctrl + Shift + Right | Extend selection to the next word start | |
Ctrl + A | Select all 选择全部 | |
选择操作Selection Operations | Ctrl + Shift + W | Clean up whitespace 清除空白 |
Ctrl + / | Comment the selection with line comments 给选定代码加注释符号/**/ | |
Ctrl + Shift + L | 选定字母文本变小写 | |
Ctrl + Shift + U | 选定字母文本变大写 | |
Tab + Selection | Tab selection | |
Ctrl + Shift + / | Undo the Comment 去除注释/**/ | |
Shift + Tab + Selection | Left Tab selection |
四 SAS主要窗口的键盘快捷键
Keyboard Shortcuts within the SAS Main Window
类别 | 快捷键 | 作用 |
对话框和入口Dialog boxes and Entry Fields | Tab | move to next field |
Shift + Tab | move to previous field | |
文本导航Navigate around Text | Ctrl + -> (right arrow) | move to next word |
Ctrl + <- (left arrow) | move to previous word | |
Home | move to beginning of line | |
End | move to end of line | |
Ctrl + Home | move to top 光标移到代码最前 | |
Ctrl + End | move to bottom光标移到代码最后 | |
Page Up | page up | |
Page Down | page down | |
Ctrl + Page Up | move to top | |
Ctrl + Page Down | move to bottom | |
Ctrl + Tab | navigate to the next open SAS window (NEXTWIND command) | |
Ctrl + Shift + Tab | navigate to the previous open SAS window (PREVWIND command) | |
标记文本Mark Text | Shift + -> (right arrow) | mark while going to the right |
Shift + <- (left arrow) | mark while going to the left | |
Shift + Home | mark to beginning of line | |
Shift + End | mark to end of line | |
Shift + Ctrl + Home | mark to top | |
Shift + Ctrl + End | mark to bottom | |
Shift + Page Up | page up and mark | |
Shift + Page Down | page down and mark | |
Shift + Ctrl + Page Up | mark to top | |
Shift + Ctrl + Page Down | mark to bottom | |
Shift + MB1 | extend the current marked text selection to the click position | |
剪切,复制,粘贴Cut, Copy, and Paste | Delete | delete the next character (or marked text) |
Ctrl + Delete | delete from the insertion point position to the end of the current word | |
Ctrl + Backspace | delete from the insertion point position to the start of the current word | |
Ctrl + MB1 | selects the entire line (clicked line) | |
Ctrl + Z | undo previous action | |
Ctrl + X | cut selected text 剪切代码 | |
Ctrl + C | copy selected text to pastebuffer复制 | |
Ctrl + V | paste text 粘贴 | |
窗口控制Window Control | Alt | switch focus to or from the main menu bar |
Shift + F5 | cascade the windows | |
Shift + F4 | tile the windows vertically | |
Shift + F3 | tile the windows horizontally | |
Ctrl + F6 | next window 激活下一个窗口 | |
Alt + F4 | exit SAS 离开SAS系统 | |
Ctrl + F4 | close the active window | |
Shift + F10 | open context menu | |
Resizing the Docking View | Alt + W + S | start docking view resizing |
-> (right arrow) | move the split bar a small amount to the right | |
<- (left arrow) | move the split bar a small amount to the right | |
Ctrl + -> (right arrow) | move the split bar a larger amount to the right | |
Ctrl + <- (left arrow) | move the split bar a larger amount to the left | |
Home | move the split bar all the way to the left | |
End | move the split bar all the way to the right | |
Return | accept the current size of the docking view and exit docking view resizing | |
Esc | end docking view resizing without resizing the docking view | |
杂项Miscellaneous | Alt + Enter | open the Properties dialog box for a selected object. This command is valid only in a Tree view or a List view. |
Esc + letter (or number) | color or highlighting attributes in NOTEPAD window |
来自:SAS资源列表
原文链接:http://saslist.net/archives/93
本文采用「CC BY-SA 4.0 CN」协议转载自互联网、仅供学习交流,内容版权归原作者所有,如涉作品、版权和其他问题请给「我们」留言处理。