I would like to assign a shortcut key for "Jump to Base Types" (which is available in the right mouse click menu when at the name in a class declaration). Is it possible?
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Hi Lars,
Follow these steps to get to the Shortcuts options page:
IDE
Thanks,
Plato
Hi Plato,
that was my first guess (I tried it with and without a space character between "Base" and "Type") but it does not work for me.
I have attached a screen shot of my shortcuts option page. Can you see what is wrong? (I have checked and there is no shortcut duplicate. I have also tried with another shortcut key.)
Best regards,
Lars
Hi Lars,
Thank you for the screenshot.
Please use the "GoToBaseTypes" string as a "Navigate" command's parameter. I hope this will fix the problem.
Please let us know your results.
Thanks,
Vito
Yes, it works! Thank's Vito!
A related question: How should I configure the shortcut key context for Navigate(GoToBaseTypes) to be able to co-exist with (i.e. have the same shortcut key as) a shortcut key for Edit.GoToDefinition?
Or to state the question in another way: Is it possible to specify a shortcut context which only is satisfied when the Navigate(GoToBaseTypes) functionality is available?
Best regards,
Lars
Hi Lars,
It looks as if the only solution we can suggest to you is to write a custom plug-in for this purpose. Please add a ContextProvider component into your plug-in, and handle its ContextSatisfied event as follows:
private bool IsBaseTypesProviderAvailable(){ foreach (NavigationProviderBase navigationProvider in CodeRush.Navigation.AvailableProviders){ if (navigationProvider.DisplayName == "Base Types"){ return true; } } return false; } private void contextProvider1_ContextSatisfied(ContextSatisfiedEventArgs ea){ ea.Satisfied = IsBaseTypesProviderAvailable(); }
Please try this solution, and let us know how it works for you.
Thanks,
Vito
It works very well. Thanks again, Vito!
You are welcome, Lars!
Thanks,
Vito