2
pimps
103 days, 28 minutes ago
Thursday, October 29, 2009 2:39:59 PM GMT Saturday, October 24, 2009 2:27:42 PM GMT

VS 2010 Code Intellisense Improvements (VS 2010 and .NET 4.0 Series)

VS 2010 Code Intellisense Improvements (VS 2010 and .NET 4.0 Series)
 
weblogs.asp.net -- This is the tenth in a series of blog posts I’m doing on the upcoming VS 2010 and .NET 4 release.  In today’s blog post I’m going to cover a small but really nice improvement to code intellisense with VS 2010 – which is its ability to better filter type and member code completion.  This enables you to more easily find and use APIs when writing code. Code Intellisense with VS 2008 To help illustrate this intellisense improvements coming with VS 2010, let’s start by doing a simple scenario in VS 2008 where we want to write some code to enable an editing scenario with a GridView control. We might start off by typing “GridView1.Edit” to bring up intellisense to see what Edit members are available on the control.  Doing this with VS 2008 brings up the intellisense drop-down and filters the current location in the dropdown to the members that start with the word “Edit”: This is great if the method/property/event we want to work with starts with “Edit” – but doesn’t really help us if the “Edit” member we are looking for starts with something else (for example: the “RowEditing” event or the “SetEditRow()” helper method).  We have to either manually scroll up and down looking for the other edit members, or pull up the object browser or help system to find them. Code Intellisense with VS 2010 Let’s now try out the same scenario with VS 2010.  When we type “GridView1.Edit” within VS 2010 we’ll find that the EditIndex property is still highlighted by default.  But the intellisense list has also been filtered so that it enables you to quickly locate all other members that have the word “Edit” anywhere in them: This allows us to quickly see all of the edit related methods/properties/events and more quickly find what we are looking for. Searching for Keywords This new intellisense filtering feature of VS 2010 is useful for searching for any member – regardless of what word it starts with.  For example, if we want to enable paging on a datagrid and can’t remember how to-do it, we could
beebee posted 108 days, 40 minutes ago     show counter code
tags: .net, asp.net, Community News, visual studio

No comments yet, be the first one to post comment.

To post your comment please login or signup