vscode快捷键整齐代码
时间: 2024-06-07 11:04:38 浏览: 165
当你在 VSCode 中编写代码时,使用快捷键可以帮助你更快、更高效地完成任务。下面是一些常用的快捷键:
1. 格式化代码:Shift + Alt + F(在 Windows 和 Linux 中)或 Shift + Option + F(在 macOS 中)。
2. 注释代码:Ctrl + /(在 Windows 和 Linux 中)或 Command + /(在 macOS 中)。
3. 撤销注释:Ctrl + Shift + /(在 Windows 和 Linux 中)或 Command + Shift + /(在 macOS 中)。
4. 复制一行:Shift + Alt + 上箭头(在 Windows 和 Linux 中)或 Shift + Option + 上箭头(在 macOS 中)。
5. 剪切一行:Ctrl + X(在 Windows 和 Linux 中)或 Command + X(在 macOS 中)。
6. 粘贴一行:Ctrl + V(在 Windows 和 Linux 中)或 Command + V(在 macOS 中)。
7. 移动一行:Alt + 上箭头或下箭头(在 Windows 和 Linux 中)或 Option + 上箭头或下箭头(在 macOS 中)。
8. 在文件中查找:Ctrl + F(在 Windows 和 Linux 中)或 Command + F(在 macOS 中)。
9. 在所有文件中查找:Ctrl + Shift + F(在 Windows 和 Linux 中)或 Command + Shift + F(在 macOS 中)。
阅读全文
相关推荐















