Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / February 2008

Tip: Looking for answers? Try searching our database.

Auto-completion of interfaces in VS.NET 2005

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Fredo - 29 Feb 2008 17:58 GMT
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.
Jon Skeet [C# MVP] - 29 Feb 2008 19:06 GMT
> 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
[quoted text clipped - 7 lines]
>
> 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.

Signature

Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet   Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk

Fredo - 29 Feb 2008 19:21 GMT
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...

>> In VS.NET 2003, if I have a class and have it implement an interface,
>> when I
[quoted text clipped - 14 lines]
> I normally hit Ctrl-. with the cursor over the interface name, and the
> option to implement the interface pops up.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.