Visual Studio 2010: Keyboard Shortcut to "Override Method" in C#?
35,372
Solution 1
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).
Solution 2
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.
Author by
thenonhacker
Updated on June 03, 2020Comments
-
thenonhacker almost 4 years
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.
-
thenonhacker almost 13 yearsI wish there was a direct shortcut like in IDEA, but this will do. Thanks!