Sublime Text 3 菜单栏及便捷操作

1-File

New File                Ctrl+N
Open File ...           Ctrl+O
Open Folder ...
Open Recent             •
Reopen with Encoding    •
New View into File
Save                    Ctrl+S
Save with Encoding      •
Save As ...             Ctrl+Shift+S
Save All
New Window              Ctrl+Shift+N
Close Window            Ctrl+Shift+W
Close File              Ctrl+W
Revert File
Close All Files
Exit

2-Edit

Undo left Delete        Ctrl+Z
Repeat left Delete      Ctrl+Y
Undo Selection          •
Copy                    Ctrl+C
Cut                     Ctrl+X
Paste                   Ctrl+V
Paste and Indent        Ctrl+Shift+V
Paste from History      Ctrl+K, Ctrl+V
Line                    •
Comment                 •
Text                    •
Tag                     •
Mark                    •
Code Folding            •••
Convert Case            •
Wrap                    •
Show Completions        Ctrl+Space
Sort Lines              F9
Sort Lines (Case Sensitive) Ctrl+F9
Permute Lines           •
Permute Selections      •

2-Edit-Code-Folding

Fold                    Ctrl+Shift+[
Unfold                  Ctrl+Shift+]
Unfold All              Ctrl+K, Ctrl+J
Fold All                Ctrl+K, Ctrl+1
Fold level 2            Ctrl+K, Ctrl+2
Fold level 3            Ctrl+K, Ctrl+3
Fold level 4            Ctrl+K, Ctr1+4
Fold level 5            Ctrl+K, Ctrl+5
Fold level 6            Ctrl+K, Ctrl+6
Fold level 7            Ctrl+K, Ctrl+7
Fold level 8            Ctrl+K, Ctrl+8
Fold level 9            Ctrl+K, Ctrl+9
Fold Tag Attributes     Ctrl+K, Ctrl+T

2-Edit-Line

Indent                  Ctrl+[
Unindent                Ctrl+]
Reindent
Swap line Up            Ctrl+Shift+Up
Swap Line Down          CtrI+Shift+Down
Duplicate Line          Ctrl+Shift+D
Delete Line             Ctrl+Shift+K
Join Lines              Ctrl+J

3-Selection

Split into lines                Ctrl+Shift+L
Add Previous line               Ctrl+Alt+Up
Add Next Line                   Ctrl+Alt+Down
Single Selection                Escape
Invert Selection
Select All                      Ctrl+A
Expand Selection to Line        Ctrl+L
Expand Selection to Word        Ctrl+D
Expand Selection to Paragraph
Expand Selection to Scope       Ctrl+Shift+Space
Expand Selection to Brackets    Ctrl+Shift+M
Expand Selection to Indentation Ctrl+Shift+J
Expand Selection to Tag         Ctrl+Shift+A

4-Find

Find ...                        Ctrl+F
Find Next                       F3
Find Previous                   Shift+F3
Incremental Find                Ctrl+l
Replace ...                     Ctrl+H
Replace Next                    Ctrl+Shift+H
Quick Find                      Ctrl+F3
Quick Find All                  Alt +F3
Quick Add Next                  Ctrl+D
Quick Skip Next                 Ctr I+K, Ctr I+D
Use Selection for Find          Ctrl+E
Use Selection for Replace       Ctrl+Shift+E
Find in Files ...               Ctrl+Shift+F
Find Results                    •

5-View

Side Bar                        •
Hide Minimap
Hide Tabs
Hide Status Bar
Hide Menu
Show Console                    Ctrl+'
Enter Full Screen               Fll
Enter Distraction Free M ode    Shift+Fll
Layout                          •
Groups                          •
Focus Group                     •
Move File to Group              •
Syntax                          •
Indentation                     •
Line Endings                    •
Word Wrap
Word Wrap Column                •
Ruler                           •
Spell Check                     F6
Next Misspelling                Ctrl+F6
Prev Misspelling                Ctrl+Shift+F6
Dictionary                      •

6-Goto

Goto Anything ...               Ctrl+P
Goto Symbol ...                 Ctrl+R
Goto Symbol in Project ...      Ctrl+Shift+R
Goto Definition ...             F12
Goto Line ...                   Ctrl+G
Jump Back                       Alt +·
Jump Forward                    Alt +Shift+-
Switch File                     •
Scroll                          •
Bookmarks                       •
Jump to Matching Bracket        Ctrl+M

6-Goto-Bookmarks

Toggle Bookmark                 Ctrl+F2
Next Bookmark                   F2
Prev Bookmark                   Shift+F2
Clear Bookmarks                 Ctrl+Shift+F2
Select All Bookmarks            Alt+F2

7-Tools

Command Palette ...             Ctrl+Shift+P
Snippets ...
Build System                    •
Build Ctrl+B
Build With ...                  Ctrl+Shift+B
Cancel Build                    Ctrl+Break
Build Results                   •
Save All on Build
Record Macro                    Ctrl+Q
Playback Macro                  Ctrl+Shift+Q
Save Macro ...
Macros                          •
New Plugin ...
New Snippet ...
New Syntax ...
New Syntax from Plain text.tml anguage ...

7-Tools-Macros

Add Line Before
Add Line in Braces
Add Line
Delete left Right
Delete Line
Delete to BOl
Delete to EOl
Delete to Hard BOl
Delete to Hard EOl

8-Project

Open Project ...
Switch Project ...
Quick Switch Project ...
Open Recent
Save Project As ...
Close Project
Edit Project
New Workspace for Project
Save Workspace As ...
Add Folder to Project ...
Remove all Folders from Project
Refresh Folders

9-Preferences

Browse Packages ...
Settings - Default
Settings - User
Settings - More                 •
Key Bindings - Default
Key Bindings - User
Font                            •
Color Scheme                    •
Package Settings                •
Package Control

便捷操作

  • Ctrl+Shift+P
  • Ctrl+R定位函数;Ctrl+G定位到行;
  • 单个文件批量修改:
    • 相同的内容:Alt+F3(win)/Ctrl+Command+G(Mac),或者连续 Ctrl+D(Win) /连续 Command+D(Mac)之后重新写即可, Ctrl-K-D跳过;使用Ctrl + U进行回退,使用Esc退出多重编辑;
    • 不相同却有一定规律可循的内容,正则,Ctrl+H(win)/Alt+Command+F(Mac);
  • 正则表达式,文本查找&替换,Alt + R切换正则匹配模式的开启/关闭;
  • 查找模式:Alt + C切换大小写敏感(Case-sensitive)模式,Alt + W切换整字匹配(Whole matching)模式,选中范围内搜索(Search in selection)
  • [Edit-Line-Join Lines]Ctrl + J(win)/Command+J(Mac)选中区域合并为一行
  • 按住Cmd(Mac) /ctrl(win)同时选择和编辑多条代码段;
  • Ctrl + N新标签,Ctrl + W关闭当前标签,Shift+Cmd+T重新打开关闭的标签;
  • Ctrl + P匹配文件(#keyword/:linenumber/@symbol跳转指定位置);
  • Ctrl+M:跳转到对应括号,Ctrl+X:删除当前行,Ctrl + Enter 下新增一行,Ctrl + Shift + Enter上新增一行;Ctrl+Shift+K/D 删除/再制行
  • Ctrl+Shift+Space/M/J/A 扩展选择
  • Ctrl + ←/→进行逐词移动,Ctrl + Shift + ←/→进行逐词选择,Ctrl + Shift + ↑/↓上下移动行,(Win);
  • Command + ↑/↓从当前行移动到头/尾;Command + Shift + ↑/↓从当前行选择到头/尾,(Mac);
  • 分屏:Alt + Shift + 1/2/3/4//8/9//5(Win);
  • Ctrl + [向左缩进(Shift+Tab);Ctrl + ]向右缩进(Tab),Ctrl + Shift + V当前缩进粘贴代码;
  • Alt+数字:切换打开第N个文件

你可能感兴趣的:(Sublime Text 3 菜单栏及便捷操作)