Sublime Text 快捷键

来源:互联网 发布:飞向札幌的班机js 编辑:程序博客网 时间:2024/06/05 05:24

技巧转自知乎:https://www.zhihu.com/question/24896283

Sublime Text  是一款win/linux 都可以用支持多种编程语言代码编辑, 快捷键如下

太多了,慢慢啃

作者:龚一峰链接:https://www.zhihu.com/question/24896283/answer/34327939来源:知乎著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。希望对大家有帮助,有疑问的可以单独私信。尾声: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: 恢复已经关闭的标签EditingKeypressCommandCtrl + XDelete lineCtrl + ↩Insert line afterCtrl + ⇧ + ↩Insert line beforeCtrl + ⇧ + ↑Move line/selection upCtrl + ⇧ + ↓Move line/selection downCtrl + LSelect line - Repeat to select next linesCtrl + DSelect word - Repeat select others occurrencesCtrl + MJump to closing parentheses Repeat to jump to opening parenthesesCtrl + ⇧ + MSelect all contents of the current parenthesesCtrl + KKDelete 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 + ⇧ + DDuplicate line(s)Ctrl + JJoin line below to the end of the current lineCtrl + /Comment/un-comment current lineCtrl + ⇧ + /Block comment current selectionCtrl + YRedo, or repeat last keyboard shortcut commandCtrl + ⇧ + VPaste and indent correctlyCtrl + SpaceSelect next auto-complete suggestionCtrl + Usoft undo; jumps to your last change before undoing change when repeatedWindowsCtrl + Alt + UpColumn selection upCtrl + Alt + DownColumn selection downLinuxAlt + ⇧ + UpColumn selection upAlt + ⇧ + DownColumn selection upNavigation/Goto AnywhereKeypressCommandCtrl + PQuick-open files by nameCtrl + RGoto symbolCtrl + ;Goto word in current fileCtrl + GGoto line in current fileGeneralKeypressCommandCtrl + ⇧ + PCommand promptCtrl + KBToggle side barCtrl + ⇧ + Alt + PShow scope in status barFind/ReplaceKeypressCommandCtrl + FFindCtrl + HReplaceCtrl + ⇧ + FFind in filesTabsKeypressCommandCtrl + ⇧ + tOpen last closed tabCtrl + PgUpCycle up through tabsCtrl + PgDnCycle down through tabsCtrl + ⇆Find in filesAlt + [NUM]Switch to tab number [NUM] where [NUM] <= number of tabsSplit windowKeypressCommandAlt + ⇧ + 2Split view into two columnsAlt + ⇧ + 1Revert view to single columnAlt + ⇧ + 5Set 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-4BookmarksKeypressCommandCtrl + F2Toggle bookmarkF2Next bookmark⇧ + F2Previous bookmarkCtrl + ⇧ + F2Clear bookmarksText manipulationKeypressCommandCtrl + KUTransform to UppercaseCtrl + KLTransform to Lowercase


0 0