首页 > 代码库 > Sublime text使用快捷键

Sublime text使用快捷键

作者:gyfnice
链接:https://www.zhihu.com/question/24896283/answer/34327939
来源:知乎
著作权归作者所有,转载请联系作者获得授权。

代码片段

常用的都在这里能找到,有其它需要就自己配吧:

javascript/snippets/sublime/javascript at sublime-snippets · gyfnice/javascript · GitHub

总结:

这里面有些快捷键单兵作战能力可能不强,但如果你能灵活使用,将它们配合起来,能发挥很大的威力。

可能你会觉得快捷键有些多,记不下来,但是只要坚持使用,把它变为习惯,你的开发效率肯定会得到提高的!

希望对大家有帮助,有疑问的可以单独私信。

尾声:windows下的快捷键一览
Alt+R : 开启正则表达式功能Alt+Enter: 找到匹配目标后全部选择Ctrl+R:前往 method(mac下?R)Ctrl+M:跳转到对应括号按Ctrl+Shift+上下键,可替换行Ctrl+D:选择单词,重复可增加选择下一个相同的单词Ctrl+L:选择行,重复可依次增加选择下一行Ctrl+Shift+P:打开命令面板Ctrl+P:搜索项目中的文件(mac下?P),在里面输入:admi@auto 可以定位到相应文件夹(admin.html)下的相应方法(auto)。Ctrl+G:跳转到第几行Ctrl+W:关闭当前打开文件Ctrl+Shift+W:关闭所有打开文件Ctrl+Shift+V:粘贴并格式化Ctrl+Shift+L:选择多行Ctrl+Shift+Enter:在当前行前插入新行Ctrl+X:删除当前行Ctrl+U:软撤销,撤销光标位置Ctrl+J:选择标签内容Ctrl+F:查找内容Ctrl+Shift+F:查找并替换Ctrl+H:替换Ctrl+N:新建窗口Ctrl+K+B:开关侧栏Ctrl+Shift+M:选中当前括号内容,重复可选着括号本身Ctrl+F2:设置/删除标记Ctrl+/:注释当前行Ctrl+Shift+/:当前位置插入注释Ctrl+Alt+/:块注释,并Focus到首行,写注释说明用的Ctrl+Shift+A:选择当前标签前后,修改标签用的F11:全屏Shift+F11:全屏免打扰模式,只编辑当前文件Alt+F3:选择所有相同的词Alt+.:闭合标签Alt+Shift+数字:分屏显示Alt+数字:切换打开第N个文件Shift+右键拖动:光标多不,用来更改或插入列内容鼠标的前进后退键可切换Tab文件按Ctrl,依次点击或选取,可需要编辑的多个位置Ctrl+shift+D: 备份多个当前行Ctrl+shift+T: 恢复已经关闭的标签EditingKeypress	CommandCtrl + X	Delete lineCtrl + ?	Insert line afterCtrl + ? + ?	Insert line beforeCtrl + ? + ↑	Move line/selection upCtrl + ? + ↓	Move line/selection downCtrl + L	Select line - Repeat to select next linesCtrl + D	Select word - Repeat select others occurrencesCtrl + M	Jump to closing parentheses Repeat to jump to opening parenthesesCtrl + ? + M	Select all contents of the current parenthesesCtrl + KK	Delete from cursor to end of lineCtrl + K + ?	Delete from cursor to start of lineCtrl + ]	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 lineCtrl + /	Comment/un-comment current lineCtrl + ? + /	Block comment current selectionCtrl + Y	Redo, or repeat last keyboard shortcut commandCtrl + ? + V	Paste and indent correctlyCtrl + Space	Select next auto-complete suggestionCtrl + U	soft undo; jumps to your last change before undoing change when repeatedWindowsCtrl + Alt + Up	Column selection upCtrl + Alt + Down	Column selection downLinuxAlt + ? + Up	Column selection upAlt + ? + Down	Column selection upNavigation/Goto AnywhereKeypress	CommandCtrl + P	Quick-open files by nameCtrl + R	Goto symbolCtrl + ;	Goto word in current fileCtrl + G	Goto line in current fileGeneralKeypress	CommandCtrl + ? + P	Command promptCtrl + KB	Toggle side barCtrl + ? + Alt + P	Show scope in status barFind/ReplaceKeypress	CommandCtrl + F	FindCtrl + H	ReplaceCtrl + ? + F	Find in filesTabsKeypress	CommandCtrl + ? + t	Open last closed tabCtrl + PgUp	Cycle up through tabsCtrl + PgDn	Cycle down through tabsCtrl + ?	Find in filesAlt + [NUM]	Switch to tab number [NUM] where [NUM] <= number of tabsSplit windowKeypress	CommandAlt + ? + 2	Split view into two columnsAlt + ? + 1	Revert view to single columnAlt + ? + 5	Set view to grid (4 groups)Ctrl + [NUM]	Jump to group where num is 1-4Ctrl + ? + [NUM]	Move file to specified group where num is 1-4BookmarksKeypress	CommandCtrl + F2	Toggle bookmarkF2	Next bookmark? + F2	Previous bookmarkCtrl + ? + F2	Clear bookmarksText manipulationKeypress	CommandCtrl + KU	Transform to UppercaseCtrl + KL	Transform to Lowercase
作者:gyfnice
链接:https://www.zhihu.com/question/24896283/answer/34327939
来源:知乎
著作权归作者所有,转载请联系作者获得授权。

Alt+R : 开启正则表达式功能Alt+Enter: 找到匹配目标后全部选择Ctrl+R:前往 method(mac下?R)Ctrl+M:跳转到对应括号按Ctrl+Shift+上下键,可替换行Ctrl+D:选择单词,重复可增加选择下一个相同的单词Ctrl+L:选择行,重复可依次增加选择下一行Ctrl+Shift+P:打开命令面板Ctrl+P:搜索项目中的文件(mac下?P),在里面输入:admi@auto 可以定位到相应文件夹(admin.html)下的相应方法(auto)。Ctrl+G:跳转到第几行Ctrl+W:关闭当前打开文件Ctrl+Shift+W:关闭所有打开文件Ctrl+Shift+V:粘贴并格式化Ctrl+Shift+L:选择多行Ctrl+Shift+Enter:在当前行前插入新行Ctrl+X:删除当前行Ctrl+U:软撤销,撤销光标位置Ctrl+J:选择标签内容Ctrl+F:查找内容Ctrl+Shift+F:查找并替换Ctrl+H:替换Ctrl+N:新建窗口Ctrl+K+B:开关侧栏Ctrl+Shift+M:选中当前括号内容,重复可选着括号本身Ctrl+F2:设置/删除标记Ctrl+/:注释当前行Ctrl+Shift+/:当前位置插入注释Ctrl+Alt+/:块注释,并Focus到首行,写注释说明用的Ctrl+Shift+A:选择当前标签前后,修改标签用的F11:全屏Shift+F11:全屏免打扰模式,只编辑当前文件Alt+F3:选择所有相同的词Alt+.:闭合标签Alt+Shift+数字:分屏显示Alt+数字:切换打开第N个文件Shift+右键拖动:光标多不,用来更改或插入列内容鼠标的前进后退键可切换Tab文件按Ctrl,依次点击或选取,可需要编辑的多个位置Ctrl+shift+D: 备份多个当前行Ctrl+shift+T: 恢复已经关闭的标签EditingKeypress CommandCtrl + X Delete lineCtrl + ? Insert line afterCtrl + ? + ? Insert line beforeCtrl + ? + ↑ Move line/selection upCtrl + ? + ↓ Move line/selection downCtrl + L Select line - Repeat to select next linesCtrl + D Select word - Repeat select others occurrencesCtrl + M Jump to closing parentheses Repeat to jump to opening parenthesesCtrl + ? + M Select all contents of the current parenthesesCtrl + KK Delete from cursor to end of lineCtrl + K + ? Delete from cursor to start of lineCtrl + ] 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 lineCtrl + / Comment/un-comment current lineCtrl + ? + / Block comment current selectionCtrl + Y Redo, or repeat last keyboard shortcut commandCtrl + ? + V Paste and indent correctlyCtrl + Space Select next auto-complete suggestionCtrl + U soft undo; jumps to your last change before undoing change when repeatedWindowsCtrl + Alt + Up Column selection upCtrl + Alt + Down Column selection downLinuxAlt + ? + Up Column selection upAlt + ? + Down Column selection upNavigation/Goto AnywhereKeypress CommandCtrl + P Quick-open files by nameCtrl + R Goto symbolCtrl + ; Goto word in current fileCtrl + G Goto line in current fileGeneralKeypress CommandCtrl + ? + P Command promptCtrl + KB Toggle side barCtrl + ? + Alt + P Show scope in status barFind/ReplaceKeypress CommandCtrl + F FindCtrl + H ReplaceCtrl + ? + F Find in filesTabsKeypress CommandCtrl + ? + t Open last closed tabCtrl + PgUp Cycle up through tabsCtrl + PgDn Cycle down through tabsCtrl + ? Find in filesAlt + [NUM] Switch to tab number [NUM] where [NUM] <= number of tabsSplit windowKeypress CommandAlt + ? + 2 Split view into two columnsAlt + ? + 1 Revert view to single columnAlt + ? + 5 Set view to grid (4 groups)Ctrl + [NUM] Jump to group where num is 1-4Ctrl + ? + [NUM] Move file to specified group where num is 1-4BookmarksKeypress CommandCtrl + F2 Toggle bookmarkF2 Next bookmark? + F2 Previous bookmarkCtrl + ? + F2 Clear bookmarksText manipulationKeypress CommandCtrl + KU Transform to UppercaseCtrl + KL Transform to Lowercase

Sublime text使用快捷键