Skip to content

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:

CommandWhat It Does
WPILib: Build Robot CodeCompile the robot code
WPILib: Deploy Robot CodeBuild + deploy to roboRIO
WPILib: Start ToolOpen Glass, Shuffleboard, etc.
WPILib: Simulate Robot CodeRun robot simulation
WPILib: Create a new projectNew WPILib project wizard
WPILib: Open Gradle TaskRun Gradle tasks

General VSCode

ShortcutAction
Ctrl+S / Cmd+SSave file
Ctrl+Z / Cmd+ZUndo
Ctrl+Shift+Z / Cmd+Shift+ZRedo
Ctrl+F / Cmd+FFind in file
Ctrl+Shift+F / Cmd+Shift+FFind in all files
Ctrl+H / Cmd+HFind and replace
Ctrl+P / Cmd+PQuick open file by name
Ctrl+\`` / `` Cmd+ ``Open terminal
Ctrl+B / Cmd+BToggle sidebar
Ctrl+Shift+B / Cmd+Shift+BRun build task
ShortcutAction
F12Go to definition
Alt+F12Peek definition (inline)
Shift+F12Find all references
Ctrl+T / Cmd+TGo to symbol
Ctrl+Shift+O / Cmd+Shift+OGo to symbol in file
Ctrl+G / Cmd+GGo to line number

Editing

ShortcutAction
Ctrl+D / Cmd+DSelect next occurrence of word
Ctrl+Shift+L / Cmd+Shift+LSelect all occurrences
Ctrl+/ / Cmd+/Toggle line comment
Ctrl+Shift+/ / Cmd+Shift+/Toggle block comment
Alt+Up/Down / Option+Up/DownMove line up/down
Shift+Alt+Up/Down / Shift+Option+Up/DownCopy line up/down
Ctrl+Shift+K / Cmd+Shift+KDelete line

Java-Specific

ShortcutAction
Ctrl+Space / Cmd+SpaceTrigger autocomplete
Ctrl+. / Cmd+.Quick fix (import, rename, etc.)
Ctrl+Shift+O / Cmd+Shift+OOrganize imports
F2Rename symbol

Built for XBot Robotics Team 488