Skip to content

Instantly share code, notes, and snippets.

@chaojian-zhang
Last active November 23, 2022 14:11
Show Gist options
  • Save chaojian-zhang/c105d73b5cd4b677a2a35a6396bd1094 to your computer and use it in GitHub Desktop.
Save chaojian-zhang/c105d73b5cd4b677a2a35a6396bd1094 to your computer and use it in GitHub Desktop.
Visual Studio very common shortcuts that's used and forgotten by us.

Visual Studio Shortcuts

Navigation

  • Ctrl+-: Go to last cursor location (navigate back); Same effect if one has "Navigate back" mouse button;
  • Alt+F12: Peek definition; Press again to peek declaration;
  • Ctrl+K, O: Switch between header and cpp file;
  • Ctrl+K, R: Find all references;
  • Alt+*: Go (back to) current debug line;
  • F9: Toggle breakpoint
  • Ctrl+Shift+F10: "Set Next Statement" allows skipping statements; Equivalently, hold Ctrl when clicking that green triangle execute-to popup button.

Views

  • Ctrl+Alt+X: Toolbox (for Visual Designer)
  • F4: Properties

Essential Configurations

  • Tools -> Options -> Projects and Solutions -> Track Active Item in Solution Explorer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment