VScode-基础编辑-常用快捷键

基础编辑 Basic editing


快捷键 功能含义 Function
Ctrl+Z 撤销
Ctrl+Y 恢复,即恢复撤销的内容
Ctrl+X 剪切行(空选定) Cut line (empty selection)
Ctrl+C 复制行(空选定)Copy line (empty selection)
Alt+ ↑ / ↓ 向上/向下移动行 Move line up/down
Ctrl+Shift+K 删除行 Delete line
Ctrl+Shift+\ 跳到匹配的括号 Jump to matching bracket
Ctrl+] / [ 向左移动行/向右移动行(支持全行) Indent/outdent line
Home 转到行首 Go to beginning of line
End 转到行尾 Go to end of line
Ctrl+Home 转到文件开头 Go to beginning of file
Ctrl+End 转到文件末尾 Go to end of file
Ctrl+↑ / ↓ 光标所在行不变,屏幕向上/向下滚动行 Scroll line up/down
Alt+PgUp / PgDown 光标所在行不变,屏幕向上/向下滚动页面 Scroll page up/down
Ctrl+/ 切换行注释 Toggle line comment
Shift+Alt+A 切换块注释 Toggle block comment
Alt+Z 切换自动换行 Toggle word wrap
Alt+Shift+鼠标左键+拖动 列选择 Column selection

参考链接

https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf
https://www.cnblogs.com/Tom-Zz/p/16516813.html
https://zhuanlan.zhihu.com/p/44044896

posted @ 2022-10-27 14:30  jianmuzi  阅读(39)  评论(0编辑  收藏  举报
TOP 底部