Sublime text 快捷键总结
下述快捷键都是我写C++代码时发现的,是否适用其他格式(扩展名)的文件尚为未知。
Basic Editing
Ctrl + A 全选
Ctrl + S 保存
Ctrl + C 复制
Ctrl + V 粘贴
Ctrl + L 选中一行 (Select lines - Repeat to select next lines)
Ctrl + / (注释)/(取消注释)一行 (Comment/uncomment current selection)
Ctrl + Shift + / 添加C格式的注释(/**/) (Block comment current selection)
UPD
For more information, go to Sublime Text Docs
More Editing
Ctrl + X Cut line
Ctrl + KK Delete from cursor to end of line
Ctrl + K + Backspace Delete from cursor to start of line
Ctrl + Shift + V Paste and indent correctly (这个尤其有用)
Ctrl + D Select word - Repeat select other occurences
Ctrl + M Jump to closing parentheses Repeat to jump to opening parentheses
Ctrl + Shift + M Select all contents of the current parentheses
Ctrl + Shift + K Delete line (注意它和 Ctrl + X 的区别)
Ctrl + Shift + ↑ (Up) Move line/selection up
Ctrl + shift + ↓ (Down) Move line/selection down
Ctrl + Shift + D Duplicate line(s)
Ctrl + J Join line below to the end of current line
Ctrl + ] (或者Tab) Indents current line(s)
Ctrl + [ (或者Shift + Tab) Un-indent current line
Alt + Shift + Up Column selection up (column selection 是Sublime Text的特色功能)
Alt + Shift + Down Column selection down
General
Ctrl + Shift + P Command prompt
Ctrl + KB Toggle side bar (这个尤其有用, 从前一直不知道如何关掉side bar)
Ctrl + Shift + Alt + P Show scope in status bar (这个NB, 与syntax highlight有关)
Navigation/Goto Anywhere
Ctrl + P Quick-open files by name
Ctrl + R Goto symbol
Ctrl + ; Goto word in current file
Ctrl + G Goto line in current file
【推荐】还在用 ECharts 开发大屏?试试这款永久免费的开源 BI 工具!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 一次Java后端服务间歇性响应慢的问题排查记录
· dotnet 源代码生成器分析器入门
· ASP.NET Core 模型验证消息的本地化新姿势
· 对象命名为何需要避免'-er'和'-or'后缀
· SQL Server如何跟踪自动统计信息更新?
· “你见过凌晨四点的洛杉矶吗?”--《我们为什么要睡觉》
· 提示词工程师自白:我如何用一个技巧解放自己的生产力
· C# 从零开始使用Layui.Wpf库开发WPF客户端
· C#/.NET/.NET Core技术前沿周刊 | 第 31 期(2025年3.17-3.23)
· 如何不购买域名在云服务器上搭建HTTPS服务