Skip to content

Instantly share code, notes, and snippets.

@AlbertoDePena
Last active March 19, 2024 16:08
Show Gist options
  • Save AlbertoDePena/c1194cc9a0fdde573968ad74122c05b6 to your computer and use it in GitHub Desktop.
Save AlbertoDePena/c1194cc9a0fdde573968ad74122c05b6 to your computer and use it in GitHub Desktop.
Tips and Tricks

Visual Studio 2022 / Visual Studio Code

Press Alt while selecting the block of code with the mouse (boxing).

Press Alt+Shift+Up / Alt+Shift+Down to insert cursor above / below.

Press Ctrl+Alt / Alt and click where you want to add a caret.

Select the word then press Alt+Shift+. / Ctrl+D to select the next occurance.

Select the word then press Alt+Shift+; / Ctrl+Shift+L to select all occurances.

Search and navigation

Search Ctrl+T / Ctrl+P

Editing and refactoring

Comment/Uncomment Ctrl+K, Ctrl+C / Ctrl+K, Ctrl+U

Format Document / Selection Ctrl+K, Ctrl+D / Ctrl+K, Ctrl+F

Move Code Up / Down Ctrl+Up / Ctrl+Down

Rename Ctrl+R, Ctrl+R

Quick Actions / Refactoring Suggestions Alt+Enter or Ctrl+.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment