RE: How Do I use the C# Code Wizards?

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hello David,

From your description, you're looking for the "C# Code Wizard" feature in
Visual Studio 2005 and 2008 IDE, correct?

Based on my research, the document page mentioned in the post is actually
about early version of Visual Studio, that is Visual Studio.NET (including
VS2002 and VS2003), and the following code wizards including the one talked
about in this issue are obsolete after VS2005:

" C# Method Wizard
" C# Property Wizard
" C# Field Wizard
" C# Indexer Wizard

For more information, you can visit what's New in Visual C# 2005.

So we cannot use the functionality any more in VS2005 and VS2008. But we
can use a new feature "Code Snippet" added in VS 2005, which allows us to
quickly reuse some common code snippets, and it contains code snippet on
class indexer. Visit the following references about code snippet function.
Here are some web articles introducing this:

#
http://www.dotnetjunkies.com/Article/C95AC204-DE44-4D4A-A2B7-1EB1BE14A8A1.dc
ik
# http://www.developer.com/net/vb/article.php/3505156

To insert an indexer into a class, we can click "Edit" -> "Intellisense" ->
"Insert Snippet", then in the floating snippet toolbar, we can select
"Visual C#"-> "indexer" to insert a template indexer into the source code.
And the keyboard shortcut of this command can be found in the menu item
right after the name of the command.

Hope this helps! And please let me know if you have any other concerns, or
need anything else. Improving the quality of our products and services is a
never ending process for Microsoft.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.



--------------------
From: =?Utf-8?B?RGF2aWQgTW9ycmlz?= <dmmorris@xxxxxxxxxxxxxxxx>
Subject: How Do I use the C# Code Wizards?
Date: Fri, 13 Jun 2008 12:37:40 -0700


I am trying to use the "Add Indexer" C# Class Wizards described on this
page:

http://msdn.microsoft.com/en-us/library/aa288385(VS.71).aspx

I open the class view (control, w, c) but when I right click on a class
but
I don't see any of the class wizards. Am I looking at the right view? I
tried
this in Visual Studio 2005 and 2008.

Thanks,

David Morris


.



Relevant Pages

  • RE: VS2008 Scripting WSH / COM Projects?
    ... Javascript IntelliSense is a brand new feature in Visual Studio 2008. ... we are continuously developing Microsoft products to meet customer needs, ... Microsoft Online Community Support ...
    (microsoft.public.vsnet.general)
  • RE: VS2008 SP1 :: Cannot display project properties any more
    ... Welcome to Microsoft Newsgroup Service. ... I have done a quick test on my environment but fails to reproduce the same ... but I am not sure about it until I see the Visual Studio log file. ... Microsoft Online Community Support ...
    (microsoft.public.vsnet.ide)
  • RE: VSS2005 <-> VS2005 cant get it to work
    ... underlying VSS 2005. ... Please check the following setting in Visual Studio ... please set it back to "Microsoft Visual ... Microsoft Online Community Support ...
    (microsoft.public.vstudio.sourcesafe)
  • Re: code printing utility
    ... I'll look at the links as soon as I have a chance but as far as Visual Studio it does indent but I really wanted the lines connecting if with endif etc to help me visualize the nesting of code etc. ... Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, we cannot make any representations regarding the quality, safety, or suitability of any software or information found there. ... The MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 1 business day is acceptable. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: The activation context being deactivated is not the most recently activated one.
    ... > WinForm control problem or Ado.net issue?) ... > ONLY this small code snippet. ... > for you and have Microsoft Customer Service Representative contact you ... > Support Professional through Microsoft Product Support Services. ...
    (microsoft.public.dotnet.languages.vb)