Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to import VSCode keybindings into Visual Studio?

I want to use the default VSCode key bindings in Visual Studio, such as Ctrl + D for example.

like image 929
Mikael Avatar asked Aug 10 '18 12:08

Mikael


People also ask

How do I add Keybindings to Visual Studio?

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 I add Ctrl D code to Visual Studio?

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.

Where is the Keybindings file VS Code?

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).

Where is Keybindings JSON VS Code?

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.


2 Answers

You can go to Tools -> Options -> Environment -> Keyboard as mentioned here.

enter image description here

like image 111
RayLoveless Avatar answered Oct 10 '22 11:10

RayLoveless


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.

like image 31
Dylan Wright Avatar answered Oct 10 '22 13:10

Dylan Wright