Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Same shortcut in Visual Studio and Visual Studio Code

Is there a way to setup up the same shortcuts in both Visual Studio Code and Visual Studio (without having to change them all manually each time)?

I for example use Alt+Shift+A in Visual Studio Code quite frequently. But the same shortcut in Visual Studio opens a "Add Existing Item" explorer.

I found out this, but it doesn't change the shortcut as I was expecting:

enter image description here

How to add the same Visual Studio Code shortcut to Visual Studio ?

like image 830
Crocsx Avatar asked Jul 21 '26 13:07

Crocsx


1 Answers

Option A: The Microsoft-provided "Visual Studio Keymap" extension for VS Code at https://marketplace.visualstudio.com/items?itemName=ms-vscode.vs-keybindings (I don't know if it has the specific mapping(s) you want)

Option B: The "Visual Studio Code" keyboard mapping scheme within Visual Studio's keyboard options (but you said that one didn't have the specific mapping(s) you want)

Option C: Manually edit the key bindings, which can then sync in VS Code and/or Visual Studio with the built-in https://code.visualstudio.com/docs/editor/settings-sync / https://learn.microsoft.com/en-us/visualstudio/ide/synchronized-settings-in-visual-studio but I can understand if manual edits aren't preferred.

like image 100
Andrew D. Bond Avatar answered Jul 23 '26 18:07

Andrew D. Bond