Skip to content

Instantly share code, notes, and snippets.

@nickleefly
Last active December 10, 2015 23:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickleefly/4507729 to your computer and use it in GitHub Desktop.
Save nickleefly/4507729 to your computer and use it in GitHub Desktop.
sublime text shortcut windows

#Editing ##Keypress Command

  • Ctrl + X Delete line
  • Ctrl + ↩ Insert line after
  • Ctrl + ⇧ + ↩ Insert line before
  • Ctrl + ⇧ + ↑ Move line/selection up
  • Ctrl + ⇧ + ↓ Move line/selection down
  • Ctrl + L Select line - Repeat to select next lines
  • Ctrl + D Select word - Repeat select others occurrences
  • Ctrl + M Jump to closing parentheses Repeat to jump to opening parentheses
  • Ctrl + ⇧ + M Select all contents of the current parentheses
  • Ctrl + KK Delete from cursor to end of line
  • Ctrl + K + ⌫ Delete from cursor to start of line
  • Ctrl + ] Indent current line(s)
  • Ctrl + [ Un-indent current line(s)
  • Ctrl + ⇧ + D Duplicate line(s)
  • Ctrl + J Join line below to the end of the current line
  • Ctrl + / Comment/un-comment current line
  • Ctrl + ⇧ + / Block comment current selection
  • Ctrl + Y Redo, or repeat last keyboard shortcut command
  • Ctrl + ⇧ + V Paste and indent correctly
  • Ctrl + Space Select next auto-complete suggestion
  • Ctrl + U soft undo; jumps to your last change before undoing change when repeated

#Navigation/Goto Anywhere ##Keypress Command

  • Ctrl + P Quick-open files by name
  • Ctrl + R Goto symbol
  • Ctrl + ; Goto word in current file
  • Ctrl + G Goto line in current file

#General ##Keypress Command

  • Ctrl + ⇧ + P Command prompt
  • Ctrl + KB Toggle side bar
  • Ctrl + ⇧ + Alt + P Show scope in status bar

#Find/Replace ##Keypress Command

  • Ctrl + F Find
  • Ctrl + H Replace
  • Ctrl + ⇧ + F Find in files

#Tabs ##Keypress Command

  • Ctrl + ⇧ + t Open last closed tab
  • Ctrl + PgUp Cycle up through tabs
  • Ctrl + PgDn Cycle down through tabs
  • Ctrl + ⇆ Find in files
  • Alt + [NUM] Switch to tab number [NUM] where [NUM] <= number of tabs

#Split window ##Keypress Command

  • Alt + ⇧ + 2 Split view into two columns
  • Alt + ⇧ + 1 Revert view to single column
  • Alt + ⇧ + 5 Set view to grid (4 groups)
  • Ctrl + [NUM] Jump to group where num is 1-4
  • Ctrl + ⇧ + [NUM] Move file to specified group where num is 1-4
  • Alt + F3 Select all occurrence

#Bookmarks ##Keypress Command

  • Ctrl + F2 Toggle bookmark
  • F2 Next bookmark
  • ⇧ + F2 Previous bookmark
  • Ctrl + ⇧ + F2 Clear bookmarks

#Text manipulation ##Keypress Command

  • Ctrl + KU Transform to Uppercase
  • Ctrl + KL Transform to Lowercase
Ctrl+L 选择整行(按住-继续选择下行)
Ctrl+KK 从光标处删除至行尾
Ctrl+Shift+K 删除整行
Ctrl+Shift+D 复制光标所在整行,插入在该行之前
Ctrl+J 合并行(已选择需要合并的多行时)
Ctrl+KU 改为大写
Ctrl+KL 改为小写
Ctrl+D 选词 (按住-继续选择下个相同的字符串)
Ctrl+M 光标移动至括号内开始或结束的位置
Ctrl+Shift+M 选择括号内的内容(按住-继续选择父括号)
Ctrl+/ 注释整行(如已选择内容,同“Ctrl+Shift+/”效果)
Ctrl+Shift+/ 注释已选择内容
Ctrl+Space 自动完成(win与系统快捷键冲突,需修改)
Ctrl+Z 撤销
Ctrl+Y 恢复撤销
Ctrl+Shift+V 粘贴并自动缩进
Ctrl+M 光标跳至对应的括号
Alt+. 闭合当前标签
Ctrl+Shift+A 选择光标位置父标签对儿
Ctrl+Shift+[ 折叠代码
Ctrl+Shift+] 展开代码
Ctrl+KT 折叠属性
Ctrl+K0 展开所有
Ctrl+U 软撤销
Ctrl+T 词互换
Tab 缩进
Shift+Tab 去除缩进
Ctrl+Shift+UP 与上行互换
Ctrl+Shift+DOWN 与下行互换
Ctrl+K Backspace 从光标处删除至行首
Ctrl+Enter 插入行后
Ctrl+Shift Enter 插入行前
F9 行排序(按a-z)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment