Use IntelliSense Filteringand AutoCorrect
IntelliSense is one of the great conveniences of Visual Studio, and it continues to improve in Visual Studio 2005, with two new features that make it more useful: IntelliSense filtering and AutoCorrect. IntelliSense filtering restricts the number of options you see to those that make sense in the current context. AutoCorrect goes one step further by recommending ways to resolve syntax errors, rather than simply reporting them.
Note
Visual Studio 2005 makes IntelliSense more intelligent by restricting class names that aren't relevant and suggesting corrections you can apply to resolve syntax errors.
How do I do that?
There's no need for any extra steps when you use IntelliSense
filtering—it's at work automatically. As you enter code, IntelliSense
prompts you with lists of classes, properties, events, and more. In
Visual Studio 2005, this list is tailored to your immediate needs,
based on various contextual details. For example, if you're selecting
an attribute to apply to a method, the IntelliSense list will show
only classes that derive from the base Attribute class.
To see the new IntelliSense in action, start typing an
exception-handling block. When you enter the Catch block, the IntelliSense list will show
only classes that derive from the base Exception class (as shown in Figure 1-8). Select the Common or
All tab at the bottom of the list, depending on whether you want to
see the most commonly used classes or every possibility.
Figure 1-8. Filtering ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access