sahajre / vscode-pro-tips

Use Visual Studio Code like a Pro

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸš€πŸš€πŸš€ vscode-pro-tips

Use Visual Studio Code like a Pro

πŸš… Moving around

Purpose Keystrokes Illustration
Move line up/down βŒ₯ ⇑
βŒ₯ ⇣
move a line up/down
Move selected line(s) up/down βŒ₯ ⇑
βŒ₯ ⇣
move line selection up/down
Move cursor forward/backward by a word βŒ₯ β‡’
βŒ₯ β‡ 
move by word
Move cursor to the beginning/end of the line ⌘ β‡’
⌘ β‡ 
Move cursor to the beginning/end of the line
Move cursor to the beginning/end of file ⌘ ⇑
⌘ ⇣
Move cursor to the beginning/end of file
Indent/outdent selection ⌘ ]
⌘ [
Indent/outdent selection
Jump to a particular line number βŒƒ G Jump to a particular line number

βŽ€ Inserting

Purpose Keystrokes Illustration
Insert a new line (above or below) and move cursor on it ⌘ ⏎
⌘ ⇧ ⏎
Insert new line above/below

βœ„ Removing

Purpose Keystrokes Illustration
cut line where cursor is, without selection. Cut line is available for pasting. ⌘ X cut line without selection
Remove line where cursor is, without selection. Cut line is not available for pasting. ⌘ ⇧ K remove line

πŸ’€ Copy & Pasting

Purpose Keystrokes Illustration
copy line and paste it ⌘ C ⌘ V copy & paste line
cut line and paste it ⌘ X ⌘ V cut & paste line
copy line where cursor is, without selection, paste it up or down βŒ₯ ⇧ ⇑
βŒ₯ ⇧ ⇣
copy line & paste it up or down

πŸ΄πŸ¦„ Replacing

Purpose Keystrokes Illustration
Select occurences of selected text or the word where cursor is, then delete and type or paste to replace ⌘ D replace word/selection occurences
Select all occurences of selected text or the word where cursor is, then delete and type or paste to replace ⌘ ⇧ L replace word/selection occurences

Opening

Purpose Keystrokes Illustration

Debugging

Purpose Keystrokes Illustration

Tooling

Purpose Keystrokes Illustration