Sublime Shortcuts and Keymap
.. contents::
Sublime Shortcuts and Keymap
==============================================================================
General
------------------------------------------------------------------------------
.. list-table:: General
:widths: 20 20 20 20
:header-rows: 1
* - Description
- Windows
- MacOS
- Linux
* - Copy / Cut / Paste (复制 / 剪切 / 粘贴)
- Ctrl + C / Ctrl + X / Ctrl + V
- Cmd + C / Cmd + X / Cmd + V
-
* - Undo / Redo (撤销 / 重做)
- Ctrl + Z / Ctrl + Y
- Cmd + Z / Cmd + Y
-
* - Open (打开文件/文件夹)
- Ctrl + O
- Cmd + O
-
* - Save (保存改动)
- Ctrl + S
- Cmd + S
-
* - Rename File (重命名文件名)
- Shift + Ctrl + P (Goto Everythign) -> Enter: "Rename"
- Ctrl + P (Goto Everythign) -> Enter: "Rename"
-
* - Quit (退出程序)
- Alt + F4
- Cmd + W
-
* - Close Tab (关闭标签页)
- Ctrl + W
- Cmd + W
-
* - Go to everything (超级控制台)
- Shift + Ctrl + P
- Shift + Cmd + P
-
* - Go to into File (前往某个文件)
- Ctrl + P
- Cmd + P
-
* - Go to Symbol, Class, Function (前往标记, 类, 方法)
- Ctrl + R
- Cmd + R
-
* - Jump to line by line number (跳到特定行)
- Ctrl + G
- Cmd + G
-
Edit
------------------------------------------------------------------------------
.. list-table:: Edit
:widths: 20 20 20 20
:header-rows: 1
* - Description
- Windows
- MacOS
- Linux
* - Title Case (标题化字符串, 每个单词第一个字母大写, 其他小写)
- Ctrl + Shift + Alt + T
- Shift + Alt + Cmd + T
-
* - Swap Case (交换大小写)
- Ctrl + Shift + Alt + S
- Shift + Alt + Cmd + S
-
* - Upper Case (全部大写)
- Ctrl + Shift + Alt + U
- Shift + Alt + Cmd + U
-
* - Lower Case (全部小写)
- Ctrl + Shift + Alt + L
- Shift + Alt + Cmd + L
-
Select
------------------------------------------------------------------------------
.. list-table:: Select
:widths: 20 20 20 20
:header-rows: 1
* - Description
- Windows
- MacOS
- Linux
* - Select All (选择全部)
- Ctrl + A
- Cmd + All
-
* - Expand Selection Line (选择光标所在行)
- Ctrl + L
- Cmd + L
-
* - Expand Selection to Word (选择光标所在的单词)
- Ctrl + D
- Cmd + D
-
* - Expand Selection to Paragraph (选择光标所在的段落)
-
-
-
* - Add Previous Line (添加光标所在的 **上一行** 到 "已选择")
- Ctrl + Alt + Up
- Shift + Alt + Up
-
* - Add Next Line (添加光标所在的 **下一行** 到 "已选择")
- Ctrl + Alt + Up
- Shift + Alt + Down
-
* - Select Between Bracket (选择括号之间的内容)
- Shift + Ctrl + M
- Shift + Ctrl + M
-
Find
------------------------------------------------------------------------------
.. list-table:: Editing
:widths: 20 20 20 20
:header-rows: 1
* - Description
- Windows
- MacOS
- Linux
* - Find (搜索文本)
- Ctrl + F
- Cmd + F
-
* - Find in Directory (在目录中的所有文件中搜索文本)
- Shift + Ctrl + F
- Shift + Cmd + F
-
* - Replace (替换)
- Ctrl + H
- Cmd + Alt + F
-
* - Replace in Directory (在目录中的所有文件中替换文本)
-
-
-
* - Find and Select Next (找到并选择 **下一个** 匹配)
- F3
- Cmd + G
-
* - Find and Select Previous (找到并选择 **上一个** 匹配)
- Shift + F3
- Shift + Cmd + G
-
* - Find and Select All (找到并选择全部)
- Alt + F3
- Ctrl + Cmd + G
-
* - Find and Add Select Next (找到并将 **下一个** 匹配添加到已选项)
- Ctrl + D
- Cmd + D
-
* - Find and Multiple Edit (搜索到 **所有** 匹配后同时编辑)
- Ctrl + F -> Enter -> Alt + Enter (Select All Found)
- Cmd + F -> Enter -> Alt + Enter (Select All Found)
-
Line
------------------------------------------------------------------------------
.. list-table:: General
:widths: 20 20 20 20
:header-rows: 1
* - Description
- Windows
- MacOS
- Linux
* - Insert Line After (在 **下面** 另起一行, 光标跳到 **下一行**)
- Ctrl + Enter
- Cmd + Enter
-
* - Insert Line Before (在 **上面** 另起一行, 光标跳到 **上一行**)
-
-
-
* - Duplicate/Delete Line (复制/删除 该行)
- Shift + Ctrl + D
- Shift + Cmd + D
-
* - Indent/Unindent Line (增加/减少 该行缩进)
- Ctrl + ``]`` / ``[``
- Cmd + ``]`` / ``[``
-
* - Move Line Up/Down (移动该行)
- Shift + Ctrl + Up/Down
- Ctrl + Cmd + Up/Down
-
* - Join Lines (连接多行)
- Ctrl + J
- Cmd + J
-
* - Multiline Editing (多行同时编辑)
- Shift + Ctrl + L
- Shfit + Cmd + L
-
* - Sort Lines Case Insensitive/Sensitiev (多行排序)
- F9 / Ctrl + F9
- F5 / Ctrl + F5
-
Navigation
------------------------------------------------------------------------------
.. list-table:: Navigation
:widths: 10 10 10 10
:header-rows: 1
* - Description
- Windows
- MacOS
- Linux
* - Previous/Next Tab (上/下 一个标签)
- Ctrl + PageUp/PageDown
- Cmd + Alt + Left/Right
-
* - Previous/Next Cursor (上/下 一个游标所在)
- Alt + ``-`` / Shift + Alt + ``-``
- Ctrl + ``-`` / Shift + Ctrl + ``-``
-
* - Jump Between Bracket (在匹配的括号之间跳转)
- Ctrl + M
- Ctrl + M
-
Menu
------------------------------------------------------------------------------
.. list-table:: Menu
:widths: 20 20 20 20
:header-rows: 1
* - Description
- Windows
- MacOS
- Linux
* - Settings (设定)
-
- Cmd + ``,``
-
* - Pluggin (插件)
-
- Shift + Cmd + P (Go to anything) -> Enter: "Package xxx"
-
* - Python Console (呼出Python控制台)
- Ctrl + `````
- Ctrl + `````
-
IDLE
------------------------------------------------------------------------------
.. list-table:: IDLE
:widths: 20 20 20 20
:header-rows: 1
* - Description
- Windows
- MacOS
- Linux
* - Copy Name (复制文件/文件夹名)
- Shift + Ctrl + P (Go to anything) -> Enter: "Copy name"
- Shift + Cmd + P (Go to anything) -> Enter: "Copy name"
-
* - Copy Absolute Path (复制绝对路径)
- Shift + Ctrl + P (Go to anything) -> Enter: "Copy Path"
- Shift + Cmd + P (Go to anything) -> Enter: "Copy Path"
-
* - Open in Explorer/Finder/File Manager (在文件浏览器中打开)
-
-
-
* - Open in Default Application (使用默认的App打开)
-
-
-
* - Run This File (运行当前编辑的脚本)
- Ctrl + B / Shift + Ctrl + B, 运行当前脚本 / 选择解释器运行当前脚本
- Cmd + B / Shift + Cmd + B, 运行当前脚本 / 选择解释器运行当前脚本
-
* - Run Last File (运行上次运行的脚本)
-
-
-
* - Select and Run (选择一个脚本运行)
-
-
-
* - Debug This File (调试当前编辑的脚本)
-
-
-
* - Debug Last File (调试上次运行的脚本)
-
-
-
* - Select and Debug (选择一个脚本调试)
-
-
-
* - Open Command Line/Terminal (打开命令行)
-
-
-
* - Fold/Unfold All Once (折叠/打开 代码一次)
- Shift + Ctrl + ``[`` / ``]``
- Cmd + Alt + ``[`` / ``]``
-
* - Fold/Unfold All Recursively (折叠/打开 全部代码)
-
-
-
Python
------------------------------------------------------------------------------
.. list-table:: Python
:widths: 20 20 20 20
:header-rows: 1
* - Description
- Windows
- MacOS
- Linux
* - Navigate to Previous/Next Method (上/下一个函数)
-
-
-
* - Move Method/Class Up/Down (移动整个函数和类的位置)
-
-
-
* - Find Usage (在项目中查找用例)
-
-
-
* - Find Usage in File (在本文件中查找用例)
-
-
-
* - Go to Declaration (到第一次的声明处)
-
-
-
* - Go to Implementation (到实现处, 可能有多个)
-
-
-
* - View Definition (快速查看定义)
-
-
-
* - View Document (快速查看文档)
-
-
-
* - Pep8 Reformat (Pep8风格化代码)
-
-
-
* - Optimize Import (自动整理Import)
-
-
-
* - Rename Variable (重命名变量)
-
-
-
* - Bookmark Here (为某处添加书签, 以便快速浏览)
-
-
-
* - Show ALl Bookmark (浏览所有的书签)
-
-
-