In Visual Studio 2010, what is the keyboard shortcut to drop-down a list of C# virtual methods, and clicking them will generate an "override method" code?
In IntelliJ IDEA, that feature's shortcut is CTRL+Shift+O.
Type override in C# or Overrides in Visual Basic, followed by a space, where you would like to insert an override method. Select the method you want to override from the base class. to show or hide properties in the list. to show or hide methods in the list.
Ctrl-Shift-F is used to find all the ocuurance of a string with in entire solution and display find result window as shown below. Ctrl-F is used to find a string in the current document, project and all open documents one by one.
You can do Ctrl + Mouse left click to open that class, there you can see all the function that you can override. I simply do copy paste of that function and change the function body.
If you type override
space, or just ov
tabspace you will get this list. Select the one you want tab and it will generate the full override
signature and place you in the body (the caret will be placed immediately before the base.blah(...)
call it generates).
Generally intellisense will automatically list after you've typed (or used intellisense to complete) override
.
Typing a space after the "e" of override
will get the list again.
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