Keyboard shortcuts in EDMX designer? - visual-studio-2013

I was wondering if there is a set of keyboard shortcuts to create/reorder/rename properties or entities in the EDMX designer of VS 2013?
Do you know of any? Is there a way to make them? I hate using the mouse when I can do the same with keyboard.

Yes. Although the context menu does not show it, you can use
F2 = Rename property
Select a property and then hit Enter to add new properties.
PS: My keyboard was mapped to Visual C# 2005 mapping scheme.
In addition you can add keyboard shortcuts to a lot of the actions you can take. To do this
Select `Tools > Options > Environment > Keyboard'.
Enter Entity in the Show commands containing:
Select the command you want from the list.
Select ADO.NET Entity Data Model Design in the Use New shortcut in:
Select your shortcut key.

Related

How to remove existing shortcuts for a given key combination in Visual Studio 2019?

How to remove all existing hooks for a given shortcut?
For example on image bellow I want only Ctrl+Alt+S to open up Options but that key combination is also hooked to other things. I want to disconnect everything else and leave it only for Options. How do I do that?
Its because your custom shortcut set as Global and VS will override it when there is exist specificly assignment for that key combination..
All you need to do remove existing binding, to do that;
Go to Tools => Options => Environemnt => Keyboard
Select your command;
Set your shortcut key and click 'Assing'. You will see a selectbox that titled "Shortcut currently used by"
Go to that existing binding, select it and click remove
and enjoy your custom binding.
See pic below;

How to list all classes implementing a interface using ReSharper?

Is there a way to list all classes implementing a given interface in ReSharper?
I usually find ",interfacename" to accomplish that but it is not a terrible solution.
In Resharper you can use Go to Implementation (Ctrl+F12, or click the symbol holding Ctrl+Alt keys) and use "Show in Find Results" option to show the results in the find results window.
Not resharper related, but Visual Studio 2015 after Update 1 allows you to right click the interface and select "Go To Implementation". With Visual Studio 2015 Update 2 they have added a shortcut Ctrl+F12.
Sure, put the text caret on the interface name and invoke Go to Derived Symbols - either Alt+End or Ctrl+Alt+B, depending on the keyboard scheme.
Note that you can also hit Alt+Enter on the interface name and type "derived" to get to the Go to Derived Symbols action a little quicker. Or use the Navigate To context menu to show all the navigation options for the interface name (Alt+~ or Ctrl+Alt+G)
Also, when the popup menu shows listing the interfaces, click the icon in the top right, and it will open the list in the Find Results window.

Resharper shortcuts for new file template

I am used to create new files in Visual Studio/Resharper with AltREN and then C for class, S for struct, T for test etc.
(this is the same as the menu Resharper/Edit/New From template)
The last step stopped working when I updated to Resharper 9.
Is there a way to restore the old behaviour or is there a new shortcut available.
I tried to rename the template &Class but it didn't help.
In Visual Studio with ReSharper 9.0+:
Tools > Options > (Sidebar) Environment > Keyboard
Then:
Show commands containing:
resharper.resharper_template
These are the templates listed in the New from Template dynamic menu. By default, Class is the first template in this list (Template00). To assign a shortcut key to the first template in the list:
In this location, highlight ReSharper.ReSharper_Template00.
Choose an option under Use new shortcut in: (I chose Solution Explorer).
Use the Press shortcut keys: to assign a shortcut key combination and click Assign to save it.
in 2017 version
use the Ctrl+Alt+Insert keyboard shortcut -> choose class -> to insert a class
ref: https://www.jetbrains.com/help/resharper/2017.1/Templates__Applying_Templates__Creating_Files_from_Templates.html

Customize project context menu of visual studio

I'm using Visual Studio 2010 with some add-ins and extensions. The problem is now that the context menu of the project items in the solution explorer is getting so large that I always have to scroll down for the "Properties" and the "Open in Windows Explorer" which I use most.
This is getting very nasty.
Is there a possibility to group commands into a sub menu or to modify the position of the commands in the context menu?
Yes, it can be edited.
Go to 'Tools' -> 'Customize...' -> and select the 'Command' tab.
Select Context Menu and pick Project and Solution Context Menus | Project
You can always use the keyboard to do the work for you.
The default binding for Properties is Alt+Enter (or sometimes F4 depending on what add-ins you have installed). Select the project in Solution Explorer and hit Alt+Enter to show it's properties. (This works for almost any other object as well, btw).
The default binding for view SolutionExplorer is Ctrl+Alt+L, so you don't have to use your mouse to get there.
There is no default binding for opening a project in Windows Explorer, but you can set one yourself.
The keyboard bindings are set under Tools->Options...->Environment->Keyboard, and the interesting settings in this case are probably View.SolutionExplorer, Project.OpenFolderinWindowsExplorer and View.PropertiesWindow or Project.Properties depending on which propertiy collection you were referring to.

Is there a hotkey in Visual Studio to open the member drop down list?

In Visual Studio there is a drop down list in the top right hand corner that you can use to navigate to the various members in the class. Does anyone know if there is a hot key to open this ddl?
I think you're looking for Ctrl + F2, which moves the cursor to the navigation bar at the top of a code view. From there, you can press Tab to move the cursor over to the member list.
For this (and pretty much every other Visual Studio hotkey/shortcut key combination), see here.
Visual Studio 2017+: They now support Resharper-like shortcuts. They work pretty well, too.
Ctrl+T - 'Go to All' (class/member/file), type m MyProp for members only
Alt+\ - 'Go to Member in current file'
Using VS 2008, I still don't know how to get directly to the Members dropdown which is what I want. But, the key bindings will be different for everyone. The command you want to search for under Options > Keyboard > Show commands containing: is Window.MoveToNavigationBar.
Assuming you are using the default keybindings packaged with Visual Studio, CTRL+F2 will focus the top-right drop-down list, and you can then navigate members by pressing TAB and using the arrow keys.
In my install of VS 2013, this is called Window.MoveToNaviationBar and is bound to Ctrl+F8. This is visual C++ settings.
Use Ctrl + F2 to get up there, then a click on Tab will get you to the member list instead of the object list.

Resources