2020-08-26
|~1 min read
|163 words
I was looking for how to quickly collapse (fold) all code methods in VS Code the other day (⌘ + k, ⌘ + 0
) when I came across something even more useful: all of the keyboard shortcuts set within VS Code (⌘ + k, ⌘ + s
).
The beauty of this is that you can now search for any keyboard shortcuts or create your own bindings.
For example, I wind up looking at my settings a lot (⌘ + ,
), but more often than not, I want the JSON version to see what I’ve set. So, I created a new keybinding: ⌘ + k, ⌘ + ,
.
These manually set keybindings can be seen through the command palette’s option: Preferences: Open Keyboard Shortcuts (JSON)
.
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "cmd+k cmd+,",
"command": "workbench.action.openSettingsJson"
}
]
And just like that, I’m able to fully customize the keyboard shortcuts within VS Code!
Hi there and thanks for reading! My name's Stephen. I live in Chicago with my wife, Kate, and dog, Finn. Want more? See about and get in touch!