views:

222

answers:

4

In Eclipse I can create a class with stub methods auto-generated for an interface. Surely this works in Visual Studio somehow, but for the life of me, I can't figure out how...

Any thoughts?

+2  A: 

Yes you can. Type the interface name as usual and look for a smart tag to pop underneath the interface name. Expand that and it will give you menu options for implementing the interface.

The keyboard shortcut for this is Control + ..

Andrew Hare
thanks! any way to do that with a keyboard shortcut?
Epaga
Ctrl+. is the shortcut
Epaga
A: 

In vb.net you just write class name implement interface [press enter here]

Petoj
+1  A: 

Here's a good article on the code refactoring functionality in Visual Studio 2005.

Refactoring C# Code Using Visual Studio 2005

Phaedrus
+1  A: 

Type the name of the interface and either right click it (using the smart tag), or, my personal favorite, press ctrl + point. (No need to reach for the mouse ;) ).

Frederik Gheysels