VSCode Shortcuts

 Here is an list of VSCode shortcuts,


General:

Ctrl + P: Quick Open, navigate to files in the workspace.

Ctrl + Shift + N: New window/instance.

Ctrl + Shift + W: Close window/instance.

Ctrl + Shift + T: Reopen closed editor.

Ctrl + `: Show integrated terminal.

Ctrl + Shift + `: Create new terminal (split).

Ctrl + Tab: Navigate between open editor tabs.


Editing:

Ctrl + C: Copy selected text.

Ctrl + X: Cut selected text.

Ctrl + V: Paste copied/cut text.

Ctrl + Z: Undo.

Ctrl + Shift + Z: Redo (or Ctrl + Y).

Ctrl + F: Find.

Ctrl + H: Replace.

Ctrl + D: Add selection to the next find match.

Alt + F3: Select all occurrences of the current selection.

Ctrl + L: Select current line.


Navigation:

Ctrl + G: Go to line.

Ctrl + P + @: Go to symbol in the file.

Ctrl + P + #: Go to symbol in the workspace.

Ctrl + Shift + O: Go to symbol in the workspace (alternative).

Ctrl + P + : Go to file.

Ctrl + P + >: Go to type definition.

F12: Go to definition.

Ctrl + F12: Go to implementation.


Window Management:

Ctrl + W: Close editor.

Ctrl + K + W: Close all editors.

Ctrl + Shift + T: Reopen closed editor.

Ctrl + Tab: Navigate between open editor tabs.

Ctrl + 1/2/3/4, etc.: Switch to specific editor group.


Code Formatting:

Shift + Alt + F: Format document.

Ctrl + K + F: Format selection.

Ctrl + /: Toggle line comment.


Refactoring:

F2: Rename symbol.

Ctrl + Shift + L: Select all occurrences of the current selection.


Debugging:

F9: Toggle breakpoint.

F5: Start debugging.

F10: Step over.

F11: Step into.

Shift + F11: Step out.

Shift + F5: Stop debugging.


Git Integration:

Ctrl + Shift + G: Open Git view.

Ctrl + Enter: Commit changes.