Shortcut IDEs

VS Code

General

Essential shortcuts for everyday coding tasks including file management, editing, and navigation

Ctrl+Shift+P / Cmd+Shift+P - Command Palette
Ctrl+P / Cmd+P - Quick Open (Go to File)
Ctrl+Shift+N / Cmd+Shift+N - New Window
Ctrl+W / Cmd+W - Close File
Ctrl+S / Cmd+S - Save
Ctrl+Shift+S / Cmd+Shift+S - Save As
Ctrl+Z / Cmd+Z - Undo
Ctrl+Y / Cmd+Shift+Z - Redo
Ctrl+X / Cmd+X - Cut
Ctrl+C / Cmd+C - Copy
Ctrl+V / Cmd+V - Paste
Ctrl+A / Cmd+A - Select All

Search and Replace

Find and replace text within files and across the entire workspace

Ctrl+F / Cmd+F - Find
Ctrl+H / Cmd+Option+F - Replace
Ctrl+Shift+F / Cmd+Shift+F - Find in Files
Ctrl+Shift+H / Cmd+Shift+H - Replace in Files
F3 / Cmd+G - Find Next
Shift+F3 / Cmd+Shift+G - Find Previous

Navigate between files, symbols, and different parts of your code

Ctrl+G / Cmd+G - Go to Line
Ctrl+Shift+O / Cmd+Shift+O - Go to Symbol
Ctrl+T / Cmd+T - Go to Symbol in Workspace
Alt+Right / Cmd+Right - Go Forward
Alt+Left / Cmd+Left - Go Back
Ctrl+Tab / Cmd+Tab - Switch Between Open Files
Ctrl+1,2,3 / Cmd+1,2,3 - Focus on Editor Group

Editing

Text editing shortcuts for efficient code writing and manipulation

Ctrl+D / Cmd+D - Select Next Occurrence
Ctrl+Shift+L / Cmd+Shift+L - Select All Occurrences
Alt+Click - Multi-cursor
Ctrl+Shift+K / Cmd+Shift+K - Delete Line
Ctrl+Enter / Cmd+Enter - Insert Line Below
Ctrl+Shift+Enter / Cmd+Shift+Enter - Insert Line Above
Alt+Up/Down - Move Line Up/Down
Shift+Alt+Up/Down - Duplicate Line
Ctrl+/ / Cmd+/ - Toggle Comment
Ctrl+Shift+/ / Cmd+Shift+/ - Toggle Block Comment

Code Formatting

Format and organize your code automatically

Shift+Alt+F / Shift+Option+F - Format Document
Ctrl+K Ctrl+F / Cmd+K Cmd+F - Format Selection
Ctrl+Shift+I / Cmd+Shift+I - Format Document
Ctrl+. / Cmd+. - Quick Fix
F2 - Rename Symbol

Terminal and Debug

Integrated terminal and debugging functionality

Ctrl+` / Cmd+` - Toggle Terminal
Ctrl+Shift+` / Cmd+Shift+` - Create New Terminal
F5 - Start Debugging
F9 - Toggle Breakpoint
F10 - Step Over
F11 - Step Into
Shift+F11 - Step Out

Visual Studio Code

Editor Management

Manage multiple editors and split layouts

Ctrl+\ / Cmd+\ - Split Editor
Ctrl+1,2,3 / Cmd+1,2,3 - Focus Editor Group
Ctrl+K Ctrl+W / Cmd+K Cmd+W - Close All Editors
Ctrl+Shift+T / Cmd+Shift+T - Reopen Closed Editor
Ctrl+K F / Cmd+K F - Close Folder

File Explorer

Navigate and manage files in the sidebar

Ctrl+Shift+E / Cmd+Shift+E - Focus on Explorer
Ctrl+N / Cmd+N - New File
Ctrl+Shift+N / Cmd+Shift+N - New Folder (in Explorer)
F2 - Rename
Delete - Delete File/Folder

JetBrains IDE

General

Basic functionality for JetBrains IDEs like IntelliJ IDEA, PyCharm, WebStorm

Ctrl+Shift+A / Cmd+Shift+A - Find Action
Ctrl+E / Cmd+E - Recent Files
Ctrl+Shift+E / Cmd+Shift+E - Recently Changed Files
Ctrl+S / Cmd+S - Save All
Ctrl+Z / Cmd+Z - Undo
Ctrl+Y / Cmd+Shift+Z - Redo
Ctrl+X / Cmd+X - Cut
Ctrl+C / Cmd+C - Copy
Ctrl+V / Cmd+V - Paste

Navigate through code structure and files

Ctrl+N / Cmd+N - Go to Class
Ctrl+Shift+N / Cmd+Shift+N - Go to File
Ctrl+Alt+Shift+N / Cmd+Option+Shift+N - Go to Symbol
Ctrl+G / Cmd+G - Go to Line
Ctrl+E / Cmd+E - Recent Files
Ctrl+B / Cmd+B - Go to Declaration
Ctrl+Alt+B / Cmd+Option+B - Go to Implementation
Ctrl+U / Cmd+U - Go to Super Method

Search and Replace

Find and replace across files and projects

Ctrl+F / Cmd+F - Find in File
Ctrl+R / Cmd+R - Replace in File
Ctrl+Shift+F / Cmd+Shift+F - Find in Path
Ctrl+Shift+R / Cmd+Shift+R - Replace in Path
F3 / Cmd+G - Find Next
Shift+F3 / Cmd+Shift+G - Find Previous

Editing

Code editing and manipulation shortcuts

Ctrl+D / Cmd+D - Duplicate Line
Ctrl+Y / Cmd+Backspace - Delete Line
Ctrl+W / Cmd+W - Select Word
Ctrl+Shift+W / Cmd+Shift+W - Unselect Word
Ctrl+/ / Cmd+/ - Toggle Comment
Ctrl+Shift+/ / Cmd+Shift+/ - Toggle Block Comment
Ctrl+Alt+L / Cmd+Option+L - Reformat Code
Tab - Indent
Shift+Tab - Unindent

Refactoring

Code refactoring and restructuring tools

Shift+F6 - Rename
Ctrl+Alt+M / Cmd+Option+M - Extract Method
Ctrl+Alt+V / Cmd+Option+V - Extract Variable
Ctrl+Alt+F / Cmd+Option+F - Extract Field
Ctrl+Alt+C / Cmd+Option+C - Extract Constant
F6 - Move

Run and Debug

Execute and debug your applications

Shift+F10 / Cmd+R - Run
Shift+F9 / Cmd+D - Debug
Ctrl+F2 / Cmd+F2 - Stop
F8 - Step Over
F7 - Step Into
Shift+F8 - Step Out
F9 - Resume Program
Ctrl+F8 / Cmd+F8 - Toggle Breakpoint

Android Studio

General

Android Studio specific shortcuts for mobile development

Ctrl+Shift+A / Cmd+Shift+A - Find Action
Ctrl+E / Cmd+E - Recent Files
Ctrl+S / Cmd+S - Save All
Ctrl+Z / Cmd+Z - Undo
Ctrl+Y / Cmd+Shift+Z - Redo
Ctrl+Alt+S / Cmd+, - Settings
Ctrl+Alt+Shift+S / Cmd+; - Project Structure

Navigate through Android project structure and resources

Ctrl+N / Cmd+N - Go to Class
Ctrl+Shift+N / Cmd+Shift+N - Go to File
Ctrl+Alt+Shift+N / Cmd+Option+Shift+N - Go to Symbol
Ctrl+G / Cmd+G - Go to Line
Ctrl+B / Cmd+B - Go to Declaration
Ctrl+Shift+B / Cmd+Shift+B - Go to Type Declaration
Ctrl+F12 / Cmd+F12 - File Structure

Android Specific

Android development specific shortcuts and tools

Ctrl+F9 / Cmd+F9 - Make Project
Ctrl+Shift+F9 / Cmd+Shift+F9 - Build Selected File
Ctrl+F11 / Cmd+F11 - Build APK
Shift+F10 / Cmd+R - Run App
Shift+F9 / Cmd+D - Debug App
Ctrl+Shift+F10 / Cmd+Shift+R - Run Context Configuration

Layout and Resources

Work with layouts, resources, and XML files

Ctrl+Alt+Shift+I / Cmd+Option+Shift+I - Quick Definition
Ctrl+Q / Cmd+Q - Quick Documentation
Ctrl+P / Cmd+P - Parameter Info
Ctrl+I / Cmd+I - Implement Methods
Ctrl+O / Cmd+O - Override Methods
Ctrl+Space - Basic Code Completion

Debugging and Testing

Debug and test Android applications

Ctrl+F8 / Cmd+F8 - Toggle Breakpoint
Ctrl+Shift+F8 / Cmd+Shift+F8 - View Breakpoints
F8 - Step Over
F7 - Step Into
Shift+F8 - Step Out
F9 - Resume Program
Ctrl+F2 / Cmd+F2 - Stop

Atom

General

Basic Atom editor functionality for development

Ctrl+, / Cmd+, - Open Settings
Ctrl+Shift+P / Cmd+Shift+P - Command Palette
Ctrl+N / Cmd+N - New File
Ctrl+S / Cmd+S - Save
Ctrl+Shift+S / Cmd+Shift+S - Save As
Ctrl+O / Cmd+O - Open File
Ctrl+W / Cmd+W - Close Tab
Ctrl+Shift+W / Cmd+Shift+W - Close Window

Navigate between files and within code

Ctrl+P / Cmd+P - Fuzzy Finder
Ctrl+T / Cmd+T - Go to File
Ctrl+R / Cmd+R - Go to Symbol
Ctrl+G / Cmd+G - Go to Line
Ctrl+M / Cmd+M - Go to Matching Bracket
Ctrl+F / Cmd+F - Find in Buffer
Ctrl+Shift+F / Cmd+Shift+F - Find in Project

Editing

Text editing and manipulation shortcuts

Ctrl+D / Cmd+D - Select Next
Ctrl+L / Cmd+L - Select Line
Ctrl+Shift+K / Cmd+Shift+K - Delete Line
Ctrl+Shift+D / Cmd+Shift+D - Duplicate Line
Ctrl+/ / Cmd+/ - Toggle Comments
Ctrl+Shift+/ / Cmd+Shift+/ - Toggle Block Comments
Ctrl+] / Cmd+] - Indent
Ctrl+[ / Cmd+[ - Outdent

Panes and Windows

Manage multiple panes and windows

Ctrl+K Up / Cmd+K Up - Split Up
Ctrl+K Down / Cmd+K Down - Split Down
Ctrl+K Left / Cmd+K Left - Split Left
Ctrl+K Right / Cmd+K Right - Split Right
Ctrl+K Ctrl+W / Cmd+K Cmd+W - Close Pane
Ctrl+K Ctrl+P / Cmd+K Cmd+P - Previous Pane
Ctrl+K Ctrl+N / Cmd+K Cmd+N - Next Pane

View and Style

Control the appearance and layout of the editor

Ctrl+Shift+I / Cmd+Option+I - Toggle Developer Tools
Ctrl+Shift+F11 / Cmd+Shift+F11 - Toggle Fullscreen
Ctrl+K Ctrl+1 / Cmd+K Cmd+1 - Fold at Level 1
Ctrl+K Ctrl+2 / Cmd+K Cmd+2 - Fold at Level 2
Ctrl+K Ctrl+0 / Cmd+K Cmd+0 - Unfold All

Vim

Basic Navigation

Essential movement commands for navigating through text

h - Move left
j - Move down
k - Move up
l - Move right
w - Move to next word
b - Move to previous word
0 - Move to beginning of line
$ - Move to end of line
gg - Go to first line
G - Go to last line
:n - Go to line number n

Editing Modes

Switch between different editing modes

i - Insert mode (at cursor)
I - Insert mode (at beginning of line)
a - Insert mode (after cursor)
A - Insert mode (at end of line)
o - Open new line below
O - Open new line above
v - Visual mode (character-wise)
V - Visual mode (line-wise)
Ctrl+v - Visual block mode
Esc - Exit to normal mode

Editing Commands

Modify and manipulate text efficiently

x - Delete character
dd - Delete line
yy - Yank (copy) line
p - Paste after cursor
P - Paste before cursor
u - Undo
Ctrl+r - Redo
. - Repeat last command
>> - Indent line
<< - Unindent line

Search and Replace

Find and replace text within files

/pattern - Search forward
?pattern - Search backward
n - Next search result
N - Previous search result
* - Search for word under cursor
:%s/old/new/g - Replace all occurrences
:s/old/new/g - Replace in current line

File Operations

Work with files and buffers

:w - Save file
:q - Quit
:wq - Save and quit
:q! - Quit without saving
:e filename - Edit file
:sp filename - Split window horizontally
:vsp filename - Split window vertically
:bn - Next buffer
:bp - Previous buffer

Advanced Navigation

More sophisticated movement and selection

f{char} - Find character forward
F{char} - Find character backward
t{char} - Till character forward
T{char} - Till character backward
; - Repeat last find
, - Repeat last find in opposite direction
% - Jump to matching bracket
`` - Jump to last position

Text Objects

Work with words, sentences, and paragraphs as objects

dw - Delete word
cw - Change word
yiw - Yank inner word
diw - Delete inner word
di( - Delete inside parentheses
yi" - Yank inside quotes
vim - Visual select inner word
va( - Visual select around parentheses

Window Management

Manage multiple windows and splits

:split - Split window horizontally
:vsplit - Split window vertically
Ctrl+w h - Move to left window
Ctrl+w j - Move to bottom window
Ctrl+w k - Move to top window
Ctrl+w l - Move to right window
Ctrl+w w - Switch between windows
Ctrl+w c - Close window
Ctrl+w o - Close other windows

Last updated