VSCode Keybinds
Keyboard shortcuts for efficient coding.
WPILib Commands
Open the command palette with Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac), then type:
| Command | What It Does |
|---|---|
WPILib: Build Robot Code | Compile the robot code |
WPILib: Deploy Robot Code | Build + deploy to roboRIO |
WPILib: Start Tool | Open Glass, Shuffleboard, etc. |
WPILib: Simulate Robot Code | Run robot simulation |
WPILib: Create a new project | New WPILib project wizard |
WPILib: Open Gradle Task | Run Gradle tasks |
General VSCode
| Shortcut | Action |
|---|---|
Ctrl+S / Cmd+S | Save file |
Ctrl+Z / Cmd+Z | Undo |
Ctrl+Shift+Z / Cmd+Shift+Z | Redo |
Ctrl+F / Cmd+F | Find in file |
Ctrl+Shift+F / Cmd+Shift+F | Find in all files |
Ctrl+H / Cmd+H | Find and replace |
Ctrl+P / Cmd+P | Quick open file by name |
Ctrl+\`` / `` Cmd+ `` | Open terminal |
Ctrl+B / Cmd+B | Toggle sidebar |
Ctrl+Shift+B / Cmd+Shift+B | Run build task |
Navigation
| Shortcut | Action |
|---|---|
F12 | Go to definition |
Alt+F12 | Peek definition (inline) |
Shift+F12 | Find all references |
Ctrl+T / Cmd+T | Go to symbol |
Ctrl+Shift+O / Cmd+Shift+O | Go to symbol in file |
Ctrl+G / Cmd+G | Go to line number |
Editing
| Shortcut | Action |
|---|---|
Ctrl+D / Cmd+D | Select next occurrence of word |
Ctrl+Shift+L / Cmd+Shift+L | Select all occurrences |
Ctrl+/ / Cmd+/ | Toggle line comment |
Ctrl+Shift+/ / Cmd+Shift+/ | Toggle block comment |
Alt+Up/Down / Option+Up/Down | Move line up/down |
Shift+Alt+Up/Down / Shift+Option+Up/Down | Copy line up/down |
Ctrl+Shift+K / Cmd+Shift+K | Delete line |
Java-Specific
| Shortcut | Action |
|---|---|
Ctrl+Space / Cmd+Space | Trigger autocomplete |
Ctrl+. / Cmd+. | Quick fix (import, rename, etc.) |
Ctrl+Shift+O / Cmd+Shift+O | Organize imports |
F2 | Rename symbol |