From the course: Visual Studio Code Productivity Tips

Unlock this course with a free trial

Join today to access over 24,300 courses taught by industry experts.

Create custom keybindings for commands

Create custom keybindings for commands

From the course: Visual Studio Code Productivity Tips

Create custom keybindings for commands

- [Instructor] I'm a long time Visual Studio user. That's what we're looking at here, which means I've memorized a lot of command keystrokes that I use constantly when working in this IDE. For example, I use format document all the time. Let me show you the key mapping. It's here in the Edit menu under Advanced. It's this item here, Format Document, and you can see in the menu that it's mapped to Control K, Control D. Visual Studio Code has many of the same features as are in Visual Studio, but the key mapping can be different. You might feel disoriented too, having moved from another editor to VS Code. Fortunately, VS Code is customizable so that we can redefine keyboard shortcuts. So, here I am in Visual Studio Code. First, let's review how to find the keystroke for the Command and Context menu. So, you can look at any menu, like I can right-click here and see on the right side of the menu, the assigned key mapping. That works for context menus or any of the other menus. This also…

Contents