- Create new file: Command + N
- Open file: Command + O
- Save file: Command + S
- Find files: Command + P
- Switch tabs: Ctrl + Tab or Command + Option + ← / →
- Close the sidebar: Command + B
- Copy and paste a line: Shift + Option + ↑/ ↓
- Copy a line: Command + C
- Cut a line: Command + X
- Comment a line: Command + /
- Indentation: Tab
- Reverse indent: Shift + Tab
- Move code block: Option + ↑ / ↓ after selecting the code block
- Move a single line of code: Move the cursor to the line Option + ↑ / ↓
- Format code: Option + Shift + F
- Position the cursor at the beginning and end of the line: Fn + ← / →
- Position the cursor at the beginning and end of the word: Option + ← / →
- Start debugging: F5
- Stop debugging: Shift + F5
- Single-step execution: F10 (statement by statement), F11 (process by process)
- Open terminal: Ctrl + `
- Find and replace: Command + F or Command + H
- 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