Terminal on macOS — VS Code and system terminals
Exact keyboard shortcuts and menu paths to open an integrated terminal in VS Code and the built-in Terminal app
Start Here — VS Code’s integrated terminal (what you’ll use most)
- Keyboard shortcuts (recommended):
- Toggle terminal (show/hide): Control + ` (backtick) — symbol: ⌃`
- New terminal instance: Control + Shift + ` — symbol: ⌃⇧`
- Command Palette: Shift + Command + P (⇧⌘P) → run
View: Toggle Terminal
- Menu paths:
- Terminal → New Terminal
- View → Terminal
- Explorer (right-click folder) → Open in Integrated Terminal
-
Why VS Code’s terminal first? It opens at your workspace root, integrates with the editor (links, error navigation), and provides a single place to run the Gradle wrapper (Gradle 9.2.0 via the project wrapper) and Git commands while you edit.
- If a shortcut doesn’t work:
- You can open the terminal from the menu (Terminal → New Terminal).
- Or open the Command Palette (⇧⌘P) and type
Toggle Terminal.
Quick verification
- Open the integrated terminal (one of the shortcuts above).
- Type and run:
echo hello
You should see hello printed back. If you do, your terminal is ready.
Common macOS pitfalls (brief)
- VS Code launched from the Dock may not inherit your shell’s PATH. If
javaworks in Terminal.app but not in VS Code, restart VS Code from a shell withcode .or put PATH/JAVA_HOME exports in~/.zprofile. - If
./gradlewis “Permission denied”, runchmod +x gradlewin the project root.
More macOS-specific troubleshooting, examples, and commands are available on the dedicated macOS research note linked below.