To change key bindings go to File > Preferences > Keyboard Shortcuts. Once in there you can search for the action and then double-click on it to change the binding. Below is a table with the default VS Code bindings, their corresponding Visual Studio bindings (if applicable), and the action taken. I change all of these before I do anything else in VS Code.
Action | VS Code (Default) | Visual Studio (Default) | |
---|---|---|---|
Fold All | Ctrl+k, 0 |
Ctrl+m, Ctrl+o |
|
File: Save All | Ctrl+K, S |
Ctrl+Shift+s | |
File: Save As... | Ctrl+Shift+s |
|
I found that in recent versions you have to remove the binding for
File: Save As...
for the new File: Save All
binding to work. Just right-click on the existing binding and choose Remove Keybinding
in the context menu.
I also like to turn off the little preview pane that is displayed by default on the far right of the main window. To do that, go to View > Appearance > Minimap.
I'll update the table above as I find more shortcuts that don't match (I'm sure there are plenty). As usual, this list is more for me than it is anyone else so if it doesn't help you... make your own.
No comments:
Post a Comment