Mac VSCode common shortcut keys

  1. Create new file: Command + N
  2. Open file: Command + O
  3. Save file: Command + S
  4. Find files: Command + P
  5. Switch tabs: Ctrl + Tab or Command + Option + ← / →
  6. Close the sidebar: Command + B
  7. Copy and paste a line: Shift + Option + ↑/ ↓
  8. Copy a line: Command + C
  9. Cut a line: Command + X
  10. Comment a line: Command + /
  11. Indentation: Tab
  12. Reverse indent: Shift + Tab
  13. Move code block: Option + ↑ / ↓ after selecting the code block
  14. Move a single line of code: Move the cursor to the line Option + ↑ / ↓
  15. Format code: Option + Shift + F
  16. Position the cursor at the beginning and end of the line: Fn + ← / →
  17. Position the cursor at the beginning and end of the word: Option + ← / →
  18. Start debugging: F5
  19. Stop debugging: Shift + F5
  20. Single-step execution: F10 (statement by statement), F11 (process by process)
  21. Open terminal: Ctrl + `
  22. Find and replace: Command + F or Command + H
  23. Open the command palette: Command + Shift + P

Mac shortcut keys
24. Command + Space, you can open focused search
25. Ctrl + D or exit(), exit Python in the terminal

Guess you like

Origin blog.csdn.net/Naruto_22/article/details/131498721