VSCode commonly used shortcut keys to throw away the mouse, so that rapid coding up

Special Note: The following shortcuts section does not take effect, and plug-in shortcuts may conflict you install or configure conflict.

other

Command key Common degrees Remark
Crop trailing spaces Ctrl + K Ctrl + X
View / Go To Definition Alt + F12 ★★ First select variables
To the right to open the variable definition Ctrl + K F12 ★★
View variable references Shift + F12 ★★
Open cmd terminal Ctrl + Shift + C ★★★★★
View shortcut reference Ctrl + K Ctrl + R Specific reference

Find / Search-related

Command key Common degrees Remark
Seek Ctrl + F ★★★★★
replace Ctrl + H ★★★★★
Select all found matches Alt + F3 ★★
Find Next F3 ★★★★★
Find Previous Shift + F3 ★★★★★
Find the use of case-sensitive switch Alt + C ★★★ Example: Find a distinction between CTRL and Ctrl

Notes related

Command key Common degrees Remark
Note switching block Shift+Alt+A
Note switching block Ctrl+Shift+ / ★★★★★
Switching line comments Ctrl+ / ★★★★★

Code-related operations

Command key Common degrees Remark
go ahead Alt + Right Arrow ★★★★★
Retreat Alt + Left Arrow ★★★★★
Converted to uppercase Ctrl + K Ctrl + U ★★★
Converted to lowercase Ctrl + K Ctrl + L ★★★

Line operation

Command key Common degrees Remark
Delete Row Ctrl + Shift + K ★★★★★
Mobile line Alt + up arrow / down arrow ★★★★★
Copy and paste the line Ctrl + C Ctrl + V ★★★★★
Jump to the specified line Ctrl + G ★★★★★
Line Indent Ctrl + [ ★★★★★
Row above Ctrl + Shift + Enter
Row below Ctrl + Enter ★★★★★
Folding line Ctrl + Shift + [ ★★★★
Collapse All Ctrl + K Ctrl+ 1
Expand row Ctrl + Shift + ] ★★★★★
Expand All Ctrl + K Ctrl+ 9
Wrap Alt + Z ★★★★★ When the coding line shows no less than

Window-related

Command key Common degrees Remark
Open a new window Ctrl + Shift + N ★★
Close the current window Ctrl + Shift + W ★★

View related Editor

Command key Common degrees Remark
Close the editor Ctrl + W
Close air Editor Ctrl + F4
Split Editor Ctrl + \
Open an editor on Ctrl + PageUp
Open a lower Editor Ctrl + PageDown
Focus an editor Ctrl + digital 0 represents the tool area
切换编辑器垂直/水平布局 Alt + Shift + 8
放大 Ctrl + = ★★
缩小 Ctrl + - ★★

文件相关

Command key 常用度 备注
新建文件 Ctrl + N ★★★★★
关闭文件 Ctrl + W ★★★★★
打开文件 Ctrl + O ★★★★★
保存文件 Ctrl + S ★★★★★
切换文件 Ctrl + Tab ★★★★★
另存为... Ctrl + Shift + S ★★★★★
在资源管理器中显示 Shift + Alt + R ★★★★★

打开到浏览器相关

Command key 常用度 备注
打开Chrome Ctrl + Alt + A ★★★
打开默认浏览器 Alt + B ★★★★★
打开其他浏览器 Shift + Alt + B ★★

VSCode 整个的工作区操作

Command key 常用度 备注
全屏 F11
切换侧边栏可见性 Ctrl + B ★★★★★
切换控制台可见性 Ctrl + ` ★★★★★
打开工具栏 Alt Alt+F

终端相关

Command key 常用度 备注
拆分终端 Ctrl + Shift + 5 ★★★
以上仅为个人偏好总结,欢迎指正。不具备的可以自选查找 官方快捷键参考

Guess you like

Origin www.cnblogs.com/gongxiansheng/p/12209929.html