Skip to content

Instantly share code, notes, and snippets.

@rain1024
Last active February 21, 2023 22:41
Show Gist options
  • Save rain1024/39090a8079b5c82104ec091e3deaf2ab to your computer and use it in GitHub Desktop.
Save rain1024/39090a8079b5c82104ec091e3deaf2ab to your computer and use it in GitHub Desktop.
VSCode - Don't Tourch The Mouse

VS Code - Don't Touch The Mouse

Visual Studio Code (VS Code) is a widely used code editor that provides a range of features to aid developers in writing efficient code. However, not all developers are aware of the various keyboard shortcuts and hidden features that can significantly enhance their productivity. One such feature is the ability to navigate and edit code without using a mouse, which can save time and streamline workflow.

These articles aims to highlight the advantages of not using a mouse while using VS Code and provide tips and tricks to navigate and edit code without one. Whether you're a novice or an experienced developer, learning these techniques can improve your efficiency and productivity in using VS Code.

VSCode Linux Shortcuts

General

Keybinding   Command               
Ctrl+Shift+P Show All Commands
Ctrl+P Go to File...
Ctrl+Shift+N New VSCode Window
Ctrl+W Close window/instance

Basic Editing

Keybinding   Command               
Ctrl+X Cut line

Problems

Keybinding   Command               
Ctrl+Shift+M Go to Line...
F8 Go to Next Problem (Error, Warning, Info)
Shift+F8 Go to Previous Problem (Error, Warning, Info)

Navigation

Keybinding   Command               
Ctrl+G Go to Line...
F8 Go to Next Problem (Error, Warning, Info)
Shift+F8 Go to Previous Problem (Error, Warning, Info)

Selection & Multi Cursor

Keybinding   Command               
Ctrl+Shift+L Select all occurrences of current selection

Search & Replace

Keybinding   Command               
Ctrl+F Find
F3  /   Shift+F3 Find next/previous
Ctrl+H Replace

Preferences

Keybinding   Command               
Ctrl+J View: Toggle Panel Visibility
Ctrl+B View: Toggle Primary Side Bar Visibility
Ctrl+` View: Toggle Terminal
Ctrl+H Z View: Toggle Zen Mode

Debug & Run

Keybinding   Command               
F9 Toggle breakpoint
F5 Start / Continue
Shift+F5 Stop

Panels

Keybinding   Command               
Ctrl+K Ctrl+S Preferences: Open Keyboard Shortcuts

References

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