Frontend Shortcuts Reference
Quick reference for VS Code, WebStorm and browser developer shortcuts.
Back to all tools on ToolForge
More in Developer Tools
VS Code – Navigation & File Management
| Action | Windows/Linux | macOS |
| Command palette | Ctrl + Shift + P | Cmd + Shift + P |
| Quick open file | Ctrl + P | Cmd + P |
| Go to file in folder | Ctrl + P, type # | Cmd + P, type # |
| Go to symbol in file | Ctrl + Shift + O | Cmd + Shift + O |
| Go to line | Ctrl + G | Cmd + G |
| Go to definition | F12 | F12 |
| Peek definition | Alt + F12 | Option + F12 |
| Open definition to side | Ctrl + K, F12 | Cmd + K, F12 |
| Find references | Shift + F12 | Shift + F12 |
| Go to next problem | F8 | F8 |
| Go to previous problem | Shift + F8 | Shift + F8 |
| Toggle terminal | Ctrl + ` | Ctrl + ` |
| Split editor | Ctrl + \ | Cmd + \ |
| Focus next editor group | Ctrl + 1, 2, 3 | Cmd + 1, 2, 3 |
| Close editor | Ctrl + W | Cmd + W |
| Switch tab | Ctrl + Tab | Ctrl + Tab |
Note: Backtick (`) is the key left of 1 on US keyboards.
VS Code – Editing & Refactoring
| Action | Windows/Linux | macOS |
| Find | Ctrl + F | Cmd + F |
| Replace | Ctrl + H | Cmd + Option + F |
| Find in files | Ctrl + Shift + F | Cmd + Shift + F |
| Toggle comment line | Ctrl + / | Cmd + / |
| Toggle comment block | Shift + Alt + A | Shift + Option + A |
| Format document | Shift + Alt + F | Shift + Option + F |
| Format selection | Ctrl + K, Ctrl + F | Cmd + K, Cmd + F |
| Duplicate line | Shift + Alt + ↓ | Shift + Option + ↓ |
| Delete line | Ctrl + Shift + K | Cmd + Shift + K |
| Move line up/down | Alt + ↑ / ↓ | Option + ↑ / ↓ |
| Copy line up/down | Shift + Alt + ↑ / ↓ | Shift + Option + ↑ / ↓ |
| Select next occurrence | Ctrl + D | Cmd + D |
| Select all occurrences | Ctrl + Shift + L | Cmd + Shift + L |
| Add cursor to click | Alt + Click | Option + Click |
| Insert cursor above | Ctrl + Alt + ↑ | Cmd + Option + ↑ |
| Insert cursor below | Ctrl + Alt + ↓ | Cmd + Option + ↓ |
| Expand selection | Shift + Alt + → | Ctrl + Shift + → |
| Shrink selection | Shift + Alt + ← | Ctrl + Shift + ← |
| Rename symbol | F2 | F2 |
| Quick fix | Ctrl + . | Cmd + . |
WebStorm – Navigation & Editing
| Action | Windows/Linux | macOS |
| Search everywhere | Shift + Shift | Shift + Shift |
| Find action | Ctrl + Shift + A | Cmd + Shift + A |
| Go to file | Ctrl + Shift + N | Cmd + Shift + O |
| Go to line | Ctrl + G | Cmd + G |
| Go to declaration | Ctrl + B | Cmd + B |
| Go to implementation | Ctrl + Alt + B | Cmd + Option + B |
| Find usages | Alt + F7 | Option + F7 |
| Find in files | Ctrl + Shift + F | Cmd + Shift + F |
| Replace in files | Ctrl + Shift + R | Cmd + Shift + R |
| Recent files | Ctrl + E | Cmd + E |
| Toggle terminal | Alt + F12 | Option + F12 |
| Format code | Ctrl + Alt + L | Cmd + Option + L |
| Reformat code | Ctrl + Alt + L | Cmd + Option + L |
| Duplicate line | Ctrl + D | Cmd + D |
| Delete line | Ctrl + Y | Cmd + Delete |
| Comment line | Ctrl + / | Cmd + / |
| Block comment | Ctrl + Shift + / | Cmd + Option + / |
| Rename | Shift + F6 | Shift + F6 |
| Refactor | Ctrl + Alt + Shift + T | Ctrl + Cmd + Option + T |
| Optimize imports | Ctrl + Alt + O | Ctrl + Option + O |
Chrome DevTools
| Action | Windows/Linux | macOS |
| Open DevTools | F12 / Ctrl + Shift + I | Cmd + Option + I |
| Toggle element inspector | Ctrl + Shift + C | Cmd + Shift + C |
| Open Console | Ctrl + Shift + J | Cmd + Option + J |
| Open Elements panel | Ctrl + Shift + C | Cmd + Option + C |
| Toggle device toolbar | Ctrl + Shift + M | Cmd + Option + M |
| Reload page | Ctrl + R | Cmd + R |
| Hard reload (no cache) | Ctrl + Shift + R | Cmd + Shift + R |
| View page source | Ctrl + U | Cmd + Option + U |
| Next panel | Ctrl + ] | Cmd + ] |
| Previous panel | Ctrl + [ | Cmd + [ |
| Close DevTools | Esc (when focused) | Esc (when focused) |
| Focus command menu | Ctrl + Shift + P | Cmd + Shift + P |
| Search in all sources | Ctrl + Shift + F | Cmd + Option + F |
| Search in current file | Ctrl + F | Cmd + F |
| Go to line in file | Ctrl + G | Cmd + G |
| Go to line number | Ctrl + O, type :line | Cmd + O, type :line |
Firefox Developer Tools
| Action | Windows/Linux | macOS |
| Open Developer Tools | F12 / Ctrl + Shift + I | Cmd + Option + I |
| Toggle inspector | Ctrl + Shift + C | Cmd + Option + C |
| Open Web Console | Ctrl + Shift + K | Cmd + Option + K |
| Open Browser Console | Ctrl + Shift + J | Cmd + Option + J |
| Open Debugger | Ctrl + Shift + S | Cmd + Option + S |
| Open Style Editor | Ctrl + Shift + T | Cmd + Option + T |
| Open Performance | Ctrl + Shift + E | Cmd + Option + E |
| Open Memory | Ctrl + Shift + M | Cmd + Option + M |
| Toggle responsive design | Ctrl + Shift + M | Cmd + Option + M |
| Highlight frames | Ctrl + Shift + H | Cmd + Option + H |
| Screenshot visible node | Right-click > Screenshot | Right-click > Screenshot |
| Search in HTML | Ctrl + F | Cmd + F |
Frequently Asked Questions
- What is the difference between Ctrl and Cmd shortcuts?
- On Windows/Linux, shortcuts use Ctrl key. On macOS, the equivalent is Cmd (⌘). For example, Ctrl+F on Windows becomes Cmd+F on Mac. Some shortcuts differ: Ctrl+Alt on Windows often maps to Cmd+Option on Mac. VS Code and WebStorm show platform-specific shortcuts in their UI.
- How do I customize keyboard shortcuts in VS Code?
- Open Keyboard Shortcuts with Ctrl+K Ctrl+S (Cmd+K Cmd+S on Mac) or File > Preferences > Keyboard Shortcuts. Search for any command and click the pencil icon to change its binding. You can also edit keybindings.json directly for advanced configurations like chord shortcuts (e.g., Ctrl+K then Ctrl+C).
- What are the most essential Chrome DevTools shortcuts?
- Essential DevTools shortcuts: F12 or Ctrl+Shift+I (Cmd+Option+I Mac) opens DevTools; Ctrl+Shift+C (Cmd+Option+C) toggles element inspector; Ctrl+Shift+J (Cmd+Option+J) opens Console; Ctrl+Shift+M (Cmd+Option+M) toggles device toolbar; Ctrl+R (Cmd+R) reloads; Ctrl+Shift+R (Cmd+Shift+R) hard reloads ignoring cache.
- Why do some shortcuts conflict with browser shortcuts?
- Browser shortcuts take precedence over web app shortcuts. For example, Ctrl+T opens a new tab, Ctrl+W closes a tab, Ctrl+L focuses the address bar. When building web apps, avoid these conflicts or require modifier combinations. IDEs like VS Code capture keys before the browser, avoiding conflicts.
- What is multi-cursor editing and how do I use it?
- Multi-cursor editing allows simultaneous editing at multiple positions. In VS Code: Ctrl+D selects next occurrence of current word; Ctrl+Click adds individual cursors; Alt+Click adds cursor at click position; Ctrl+Shift+L selects all occurrences. WebStorm: Alt+J selects next occurrence; Ctrl+G selects all occurrences.
- How do I access browser DevTools on macOS?
- Chrome/Safari on Mac: Cmd+Option+I opens DevTools/Web Inspector; Cmd+Option+J opens Console; Cmd+Option+C toggles inspector; Cmd+Option+M toggles device mode. Firefox on Mac: Cmd+Option+I opens Toolbox; Cmd+Option+K opens Web Console; Cmd+Option+J opens Browser Console (chrome).