Important ShortCut For Developer | VS Code | IDE
2 min readOct 12, 2024
Opportunities don’t happen, you create them .
- Swami Vivekanandan
Most Useful shortcut daily life of developer:
Select All Text
Ctrl+A
Select whole line where cursor is located.
Ctrl+L
Note: if you press continue then next line will get select one by one
Add Cursor Above/Below to select multiple line
Alt + Enter
***Most Imp**
To Run Code VS code
Ctrl+Alt+n
To Change All Occurences
Ctrl+F2
Find all References
Alt+Shift+F12
Viewing and Layout:
- Toggle Sidebar:
Ctrl + B
(Windows/Linux) orCmd + B
(Mac) - Toggle Panel(Terminal):
Ctrl + J
(Windows/Linux) orCmd + J
(Mac)
Settings and Extensions:
- Open Settings in VS code:
Ctrl + ,
(Windows/Linux) orCmd + ,
(Mac)
Search and Replace:
- Find:
Ctrl + F
(Windows/Linux) orCmd + F
(Mac) - Replace:
Ctrl + H
(Windows/Linux) orCmd + Option + F
(Mac) - Find Next:
F3
orCtrl + G
(Windows/Linux) orCmd + G
(Mac) - Find Previous:
Shift + F3
orCtrl + Shift + G
(Windows/Linux) orCmd + Shift + G (Mac)
File Management:
- New File:
Ctrl + N
(Windows/Linux) orCmd + N
(Mac) - Save File:
Ctrl + S
(Windows/Linux) orCmd + S
(Mac) - Close File:
Ctrl + W
(Windows/Linux) orCmd + W
(Mac)
Editing:
- Cut Line:
Ctrl + X
(Windows/Linux) orCmd + X
(Mac) - Copy Line:
Ctrl + C
(Windows/Linux) orCmd + C
(Mac) - Paste:
Ctrl + V
(Windows/Linux) orCmd + V
(Mac) - Undo:
Ctrl + Z
(Windows/Linux) orCmd + Z
(Mac) - Redo:
Ctrl + Y
(Windows/Linux) orCmd + Shift + Z
(Mac) - Format Document:
Shift + Alt + F
(Windows/Linux) orShift + Option + F
(Mac)
Basic Navigation:
- Open Command Palette:
Ctrl + Shift + P
(Windows/Linux) orCmd + Shift + P
(Mac) - Open File:
Ctrl + P
(Windows/Linux) orCmd + P
(Mac) - Switch Between Tabs:
Ctrl + Tab
(Windows/Linux) orCmd + Option + Right/Left Arrow
(Mac)
Select Current Word:
- Windows/Linux:
Ctrl + Shift + →
(to select word to the right) orCtrl + Shift + ←
(to select word to the left) - Mac:
Option + Shift + →
(to select word to the right) orOption + Shift + ←
(to select word to the left)
Select Everything from Cursor to Start/End of Line:
- Windows/Linux:
CTRL+L
Go to Start of Line:
- Windows/Linux:
Shift + Home
- Mac:
Shift + Cmd + Left Arrow
Go to End of Line:
- Windows/Linux:
Shift + End
- Mac:
Shift + Cmd + Right Arrow
Select Multiple Lines:
Select the next line:
- Windows/Linux:
Shift + ↓
- Mac:
Shift + ↑
Select the previous line
- Windows/Linux:
Shift + ↑
- Mac:
Shift + ↓
Thank You !! Follow Us For Such Content .