Auto-completion of interfaces in VS.NET 2005

F

Fredo

In VS.NET 2003, if I have a class and have it implement an interface, when I
type the interface name, it gives me the option to press tab and it will
create a #region encapsulated area with all the interface methods,
properties, etc.

This doesn't appear to work for me in VS.NET 2005. The only setting related
to it that I could find was Tools/Options/Text Editor/C#/Advanced which has
under the heading "Implement Interface", a checkbox for "Surround generated
code with #region", which is checked.

But the autocompletion never seems to pop up. Am I missing something?

Thanks.
 
J

Jon Skeet [C# MVP]

Fredo said:
In VS.NET 2003, if I have a class and have it implement an interface, when I
type the interface name, it gives me the option to press tab and it will
create a #region encapsulated area with all the interface methods,
properties, etc.

This doesn't appear to work for me in VS.NET 2005. The only setting related
to it that I could find was Tools/Options/Text Editor/C#/Advanced which has
under the heading "Implement Interface", a checkbox for "Surround generated
code with #region", which is checked.

But the autocompletion never seems to pop up. Am I missing something?

I normally hit Ctrl-. with the cursor over the interface name, and the
option to implement the interface pops up.
 
F

Fredo

Ah, I see. I can also get it by right-clicking on the interface label. In
VS.NET 2003, after typing the interface name, I'd get a tooltip popup saying
to hit "tab" to generate the interface, though, honestly, I'm not sure if
that was VS.NET or Visual Assist doing that.

Anyway, thanks Jon. I've been doing them by hand for the past few weeks and
it's been bugging me to no end...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top