按键与符号
space空格键command⌘, 对应 win 上的 control 键control⌃option⌥ altcaps Lock⇪shift⇧fndelete⌫
全局快捷键
-
control + space打开Spotlight -
command + tab快速切换程序 -
control + F2键盘操作菜单栏 -
control + F3键盘操作 Dock -
F12Mission Control(自定义) -
control + 左右方向键切换屏幕 -
control + 1切换到最左侧屏幕 -
command + W关闭当前窗口 -
command + M最小化当前窗口 -
command + N新建窗口 -
command + Q彻底退出当前程序 -
option + command + esc打开强制退出应用程序界面 -
control + command + Q锁定屏幕 -
command + space切换输入法 -
shift切换输入法中英文 -
shift + 普通鼠标滚轮横向滚动
文本操作
command + C复制command + X剪切command + V粘贴command + F查找command + A全选command + Z撤销command + S保存
文本编辑与光标移动
-
control + F向右移动一个字符 -
control + B向左移动一个字符 -
control + P移动到上一行 -
control + N移动到下一行 -
control + option + F向右一个单词 -
control + option + B左右一个单词 -
control + A移动到行首 -
control + E移动到行尾 -
control + H删除光标左边一个字符 -
control + D删除光标右边一个字符 -
control + K删除光标到行尾所有内容 -
option + delete删除光标左边一个单词 -
Shift-左箭头将文本选择范围向左扩展一个字符 -
Shift-右箭头将文本选择范围向右扩展一个字符 -
Option-Shift-左箭头将文本选择范围扩展到当前字词的词首,再按一次则扩展到下一字词的词首 -
Option-Shift-右箭头将文本选择范围扩展到当前字词的词尾,再按一次则扩展到下一字词的词尾
翻页
fn + upPageUpfn + downPageDownfn + leftHomefn + rightEnd
Finder
command + O打开文件return重命名space预览文件command + delete删除(移到废纸篓)shift + command + delete清倒废纸篓shift + command + O打开文稿文件夹shift + command + D打开桌面文件夹
截图
Shift + Command + 3对整个屏幕截图,文件自动保存到桌面Shift + Command + 4移动光标选择区域截图Shift + Command + 4按下空格键,光标变成相机,选择窗口截图,带阴影
Xcode
command + R运行代码command + /注释当前行
Atom
command + /注释选中行command + \切换目录command + P查找目录文件,回车打开command + R查找函数定义位置command + T搜索文件名打开文件command + 鼠标点击手动选中多行control + Shift + 方向键移动选中多行
WebStorm
适用于 JetBrains 的其他 IDE,如 PyCharm
option + command + L格式化代码option + 鼠标选中多行 鼠标可点击或按住划线。win 下是Altcommand + F查找command + R替换shift + command + O搜索文件名打开文件command + 1切换 Project/** 再回车webstorm 快捷输入多行注释.提前写好参数和返回值,注释中会自动添加
Chrome
command + R刷新当前页面command + option + I打开开发者工具command + option + J打开开发者工具中的 consolecommand + option + U显示源代码command + Y打开历史记录command + T打开新标签页command + L光标定位到地址栏
Photoshop(win)
Ctrl + 数字 1缩放到 100%Ctrl + 加号 +放大Ctrl + 减号 -缩小Alt + 鼠标滚轮缩放