Sublime Text 3常用的快捷键

本文提供了 Sublime Text 编辑器的全面快捷键指南,包括文件操作、文本编辑、代码导航等功能,帮助开发者提高工作效率。

自带快捷键

快捷键功能
Alt+O可以实现头文件和源文件之间的快速切换
Ctrl+Shift+T可以打开之前关闭的tab页
Ctrl+D选词 (反复按快捷键,即可继续向下同时选中下一个相同的文本<br>进行同时编辑)
Ctrl+G跳转到相应的行
Ctrl+J合并行(已选择需要合并的多行时)
Ctrl+L选择整行(按住-继续选择下行)
Ctrl+M光标移动至括号内开始或结束的位置
Ctrl+T词互换
Ctrl+U软撤销
Ctrl+P查找当前项目中的文件和快速搜索;输入 @ 查找文件主标题/函<br>数;或者输入 : 跳转到文件某行
Ctrl+R快速列出/跳转到某个函数
Ctrl+K Backspace从光标处删除至行首
Ctrl+KB开启/关闭侧边栏
Ctrl+KK从光标处删除至行尾
Ctrl+KT折叠属性
Ctrl+KU改为大写
Ctrl+KL改为小写
Ctrl+K0展开所有
Ctrl+Enter插入行后(快速换行)
Ctrl+Tab当前窗口中的标签页切换
Ctrl+Shift+A选择光标位置父标签对儿
Ctrl+Shift+D复制光标所在整行,插入在该行之前
ctrl+shift+F在文件夹内查找,与普通编辑器不同的地方是sublime允许添加多<br>个文件夹进行查找
Ctrl+Shift+K删除整行
Ctrl+Shift+L鼠标选中多行(按下快捷键),即可同时编辑这些行
Ctrl+Shift+M选择括号内的内容(按住-继续选择父括号)
Ctrl+Shift+P打开命令面板
Ctrl+Shift+/注释已选择内容
Ctrl+Shift+↑可以移动此行代码,与上行互换
Ctrl+Shift+↓可以移动此行代码,与下行互换
Ctrl+Shift+[折叠代码
Ctrl+Shift+]展开代码
Ctrl+Shift+Enter光标前插入行
Ctrl+PageDown和Ctrl+PageUp文件按开启的前后顺序切换
Ctrl+Z撤销
Ctrl+Y恢复撤销
Ctrl+F2设置/删除书签
Ctrl+/注释整行(如已选择内容,同“Ctrl+Shift+/”效果)
Ctrl+鼠标左键可以同时选择要编辑的多处文本
Shift+鼠标右键(或鼠标中键)可以用鼠标进行竖向多行选择
Shift+F2上一个书签
Shift+Tab去除缩进
Alt+Shift+1~9(非小键盘)屏幕显示相等数字的小窗口
Alt+.闭合当前标签
Alt+F3选中文本按下快捷键,即可一次性选择全部的相同文本进行同时编辑
Tab缩进 自动完成
F2下一个书签
F9行排序(按a-z)
F11全屏模式
Shift+F11全屏免打扰模式,只编辑当前文件
ctrl+[或]增加和减少缩进
ctrl+x剪切行或选中项
ctrl+shift+v粘贴并保持缩进
alt+shift+w用标签包裹行或选中项
ctrl+shift+;移除未闭合的容器元素(这会移除与你的光标相关的父标签)
ctrl+shift+y计算数学表达式
alt+shift+↑ 或 ↓,ctrl+ ↑ 或 ↓递增和递减(按住shift将以10的步长改变数字, 不按住以1为步长. <br>同时注意到你不需要选择数字, 默认更新本行最近的数字)
Alt+数字切换打开第N个文件
Shift+右键拖动多光标,用来更改或插入列内容

CoolFormat

快捷键功能
Ctrl+Shift+Alt+QQuick Format
Ctrl+Shift+Alt+SSelected Format

Ctags

快捷键Alt绑定鼠标绑定功能
ctrl+t, ctrl+rrebuild_ctags
ctrl+t, ctrl+tctrl+>ctrl+shift+left_clicknavigate_to_definition
ctrl+t, ctrl+bctrl+<ctrl+shift+right_clickjump_prev
alt+sctrl+shift+left_clickshow_symbols
alt+shift+sctrl+shift+left_clickshow_symbols (all files)
ctrl+alt+shift+sctrl+shift+left_clickshow_symbols (suffix)

SublimeClang

快捷键功能
alt+d,alt+dGo to the parent reference of whatever is under the current cursor position
alt+d,alt+iGo to the implementation
alt+d,alt+bGo back to where you were before hitting alt+d,alt+d or alt+d,alt+i
alt+d,alt+cClear the cache. Will force all files to be reparsed when needed
alt+d,alt+wManually warm up the cache
alt+d,alt+rManually reparse the current file
alt+d,alt+tToggle whether Clang completion is enabled or not. Useful if the complete <br>operation is slow and you only want to use it selectively
alt+d,alt+pToggle the Clang output panel
alt+d,alt+eGo to next error or warning in the file
alt+shift+d,alt+shift+eGo to the previous error or warning in the file
alt+d,alt+sRun the Clang static analyzer on the current file
alt+d,alt+oRun the Clang static analyzer on the current project
alt+d,alt+fToggle whether fast (but possibly inaccurate) completions are used or not

SublimeCodeIntel

快捷键功能
Alt+ClickJump to definition
Control+Windows+Alt+UpJump to definition
Control+Windows+Alt+LeftGo back
Control+Shift+spaceManual Code Intelligence

cscope

cscope -R -b	//生成cscope.out命令:
快捷键功能
Ctrl/Super + \Show Cscope options
Ctrl/Super + LCtrl/Super + SLook up symbol under cursor
Ctrl/Super + LCtrl/Super + DLook up definition under cursor
Ctrl/Super + LCtrl/Super + ELook up functions called by the function under the cursor
Ctrl/Super + LCtrl/Super + RLook up functions calling the function under the cursor
Ctrl/Super + Shift + [Jump back
Ctrl/Super + Shift + ]Jump forward

转载于:https://my.oschina.net/noke/blog/1511452

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值