Keyboard Shortcuts
Navigate faster with keyboard commands
Navigate CodePlanet faster with keyboard shortcuts.
Global Shortcuts
Available anywhere on the site:
| Shortcut | Action |
|---|---|
/ | Open search |
Esc | Close modal/search |
? | Show keyboard shortcuts |
g h | Go to home |
g p | Go to problems |
g l | Go to learn |
g d | Go to docs |
Documentation
When browsing docs:
| Shortcut | Action |
|---|---|
/ | Open search |
← | Previous doc |
→ | Next doc |
Esc | Close search |
Problem List
When browsing problems:
| Shortcut | Action |
|---|---|
j | Next problem |
k | Previous problem |
Enter | Open problem |
f | Toggle filters |
s | Toggle sort |
Code Editor
When writing code:
| Shortcut | Action |
|---|---|
Ctrl+Enter | Run code |
Ctrl+Shift+Enter | Submit solution |
Alt+Shift+F | Format code |
Ctrl+S | Save (editor state) |
Ctrl+/ | Toggle comment |
Ctrl+D | Select next occurrence |
Ctrl+Z | Undo |
Ctrl+Shift+Z | Redo |
| `Ctrl+`` | Toggle console |
Navigation
General navigation:
| Shortcut | Action |
|---|---|
g then h | Go Home |
g then p | Go Problems |
g then l | Go Learn |
g then b | Go Leaderboard |
g then s | Go Settings |
Modal Controls
In any modal:
| Shortcut | Action |
|---|---|
Esc | Close |
Tab | Next element |
Shift+Tab | Previous element |
Enter | Confirm/Submit |
Accessibility
We support:
- Screen reader navigation
- Focus indicators
- Skip links
- ARIA labels
Customizing Shortcuts
Planned for future releases:
- Custom keybindings
- Vim mode
- Emacs mode
Press ? anywhere to see shortcuts!