I want to use the default VSCode key bindings in Visual Studio, such as Ctrl + D for example.
On the menu bar, choose Tools > Options. Expand Environment, and then choose Keyboard. Optional: Filter the list of commands by entering all or part of the name of the command, without spaces, in the Show commands containing box. In the list, choose the command to which you want to assign a keyboard shortcut.
How do you use Ctrl D in VS Code? Ctrl+D selects the word at the cursor, or the next occurrence of the current selection. Tip: You can also add more cursors with Ctrl+Shift+L, which will add a selection at each occurrence of the current selected text.
You can view the currently active keyboard shortcuts in VS Code in the Command Palette (View -> Command Palette) or in the Keyboard Shortcuts editor (File > Preferences > Keyboard Shortcuts).
On Windows: go to File -> Preferences -> Keyboard shortcuts, or press Ctrl+K, then Ctrl+S, or edit %UserProfile%\AppData\Roaming\Code\User\keybindings. json file.
You can go to Tools -> Options -> Environment -> Keyboard as mentioned here.
Not sure why you would want to switch from VS Code to Visual Studio... I am sure there is reason though just being a little sarcastic. This is a link that talks about key bindings in Visual Studio, not sure what version you're using.Key Bindings
However, I know you can import these settings into Visual Studio but follows a specific file extension. Probably not helpful, I wonder if there is some NuGet package that could incorporate those settings.
Regardless, for the most they are both Microsoft Products. Last I checked the shortcuts for the most part are fairly similar. If you're looking for something specific or want something specific I'd just modify it in the key bindings link above.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With