From the course: Visual Studio Code for Web Developers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Setting keyboard shortcuts

Setting keyboard shortcuts - Visual Studio Tutorial

From the course: Visual Studio Code for Web Developers

Start my 1-month free trial

Setting keyboard shortcuts

- [Instructor] VS Code has a large number of predefined keyboard shortcuts. And many of the commands that are most commonly used have a shortcut assigned. However, developers come from very diverse backgrounds and might be used to keyboard shortcuts from different editors or just have different preferences for their keys. So VS Code makes it easy to customize these shortcuts. In the Preferences menu, just choose Keyboard Shortcuts. This will bring up a keybindings.json file on the right and all of the default bindings on the left. Let me just make this a little bit smaller so you can see it. Each keyboard shortcut consists of three things. There's the key property, which defines the shortcut combination. Then there's the command property, which indicates the command to execute. And then there's the when property, which is optional and specifies the context under which the key command should apply. Now, this is important, because some shortcuts only apply in certain circumstances, like…

Contents