C# Beta2 features – Intellisense completion characters.

So how do you like Beta2 so far? One of our goals this cycle is to get your feedback early! We are already rolling towards our RTM milestone and the earlier we get feedback, the faster we can shut down the product, get it to a high quality and get it out of the door into your hands.Over the next couple of weeks, I’ll be blogging about features in the product that you might not know about, so that you can take a look at them, play with them and give us feedback. As usual, please give us all feedback at the MSDN Product Feedback center. We love to hear from you and it may not be obvious but your opinions affect our decisions everyday.

I spoke earlier about features int he product that you might not know about – I’d like to talk about our intellisense today. One of the first things you might notice in the C# editor is that intellisense shows up quicker in Beta2. In Beta2 when you type “S” or “Sy” for e.g. we pop up intellisense to make it easier for you to autocomplete by pressing Tab or Spacebar or other completion characters.

What are these other completion characters? You can now see them and change them in Tools.Options.Text Editor.C#.Intellisense.

Changing these options is useful to stop intellisense from completing a selection if you happen to hit one of these completion characters. For e.g. one scenario I run into is that I will be changing code in the IDE. I will want to assign some result to a variable I havent declared yet – lets call this variable “platform”. I fully intend to declare it later. As I type platform in the editor, the IDE will look like the one below:

Now when I hit Space Bar, intellisense will complete and “PlatformID” will get inserted. I can stop intellisense from completing in this situation by unchecking the  “Committed by pressing Space Bar” option.

Let me know what you think about intellisense in Beta2. We are eagerly awaiting feedback 🙂



Comments (8)

  1. SuperJason says:

    Great, the intellisense in 2003 always felt somewhat lacking, so I think this will fix that.

  2. MichaelM says:

    How about finishing the job and adding snippets to the things that can be inserted?



    will become

    for ( int i = 0; i < length; i++ )



    Full replacement for Visual Assist?

  3. shaykatc says:

    MichaelM – we do have what you ask for. Try typing "for" and hit the Tab key.

  4. orangy says:

    I can’t get when completion can be finished with ‘ and " characters?

  5. Sam says:

    Visual Studio 2005 + C# = JOY

  6. &lt;p&gt;&amp;lt;ul&amp;gt;&amp;lt;li&amp;gt;&amp;lt;a href=&amp;quot;http://blogs.msdn.com/johnlawr/archive/2005/04/19/409821.aspx&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;Visual Studio Team System Beta 2 Extensibility Kit is Live!&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;&amp;lt;a href=&amp;quot;http://www.