Current Version: 2.0 (14 April 2010)
I’ve come to appreciate the new Visual Studio 2010 code editor IntelliSense features like Pascal case lookup and the narrowing list that is presented as you type. Unfortunately, these new code editor features did not make it into the XAML Editor. But not to worry…
- Pascal case lookup
- Optional narrowing list filter
- Filtering based on item type
- Toggle narrowing filter Hot Key (ALT + .) (ALT PERIOD)
- Toggle namespace filter Hot Key (ALT + ,) (ALT COMMA)
- xmlns IntelliSense options
- Show/hide only solution assemblies
- Show/hide schemas
- Filter settings persist for the current Visual Studio session
New In Version 2.0
- Added hot key toggling for namespace filter (ALT + ,) and narrowing filter (ALT + .)
- White listed x: when narrowing filter is enabled to ensure that it’s always listed
- Corrected the double clicking of the presenter to not select when the scroll bar is double clicked.
- Publishing the presenter from the Visual Studio Gallery. (I removed the code and presenter from my Sky Drive)
Pascal Case Lookup
Pascal case lookup is always enabled regardless of the narrowing filter option. When all of your text is upper case this feature kicks in to quickly locate the item you are looking for. Note, this feature requires at least two upper case characters be entered before kicking in.
The feature locates entries that start with the first upper case character you entered, then matches on additional upper case characters.
The below image demonstrates the Pascal case lookup.
Locating an assembly using the xmlns Pascal case IntelliSense is super fast.
Narrowing List Filter
When the narrowing list filter is enabled it provides two features.
You can enable/disable this feature by clicking the Filter icon or by using the hot key (ALT + .) (ALT PERIOD).
- Narrows the list of displayed items by only including items that contain your text
- List item selection priority
- Selects the first match that starts with your text
- Selects the first entry that contains your text
|Narrowing List Filter Enabled||Narrowing List Filter Disabled|
|With narrowing enabled, see how easy it is to locate Grid.Row or Grid.RowSpan.|
List Item Type Filter
This was my original driving force behind writing this extension. Was found myself frustrated when a type in XAML has 2 properties, 4 events and 75 namespaces listed in the IntelliSense listing. Problem solved.
New in version 2.0 is the addition of the namespace filter toggling hot key (ALT + .) (ALT PERIOD). This hot key is tied to the namespace icon, making it faster to show/hide namespaces.
Standard list of items, notice the multitude of namespaces that are listed.
Toggle the namespaces ToolBar button by clicking it and they are filtered for you.
The other ToolBar filter buttons work the same. The gray background is the enabled state. The white background with grayscale image is the disabled state.
The below image demonstrates the two filter buttons in the xamls IntelliSense presenter.
- Show only solution assemblies is enabled.
- Remove schema entries is enabled.
Another way to locate your assemblies very quickly is demonstrated in the below image. The two filter buttons in the default state and I entered WC to quickly find an assembly in my solution.
This is another example of the Pascal case filtering.
In the below image I’m taking advantage of the narrowing filter to locate all assemblies that have the word media. When searching the text with this type of search, the entire entry line of text is searched including the assembly name inside the (…).
To view your installed extensions use the Visual Studio 2010 menu, Tools, Extension Manager…
From here you can either disable or uninstall extensions.
You can also configure settings for extensions using the Tools, Options dialog.
Visual Studio 2010
If you have a previous version of the XAML IntelliSense Presenter, use the Visual Studio Extensions Manager and uninstall the previous version.
The use the Visual Studio Gallery to install the new version.
This step won’t be required in the future.
In a few weeks, I’ll publish a blog post with the source and how the presenter works.
Enjoy this XAML Editor extension.
Have a great day,
Just a grain of sand on the worlds beaches.