XAML IntelliSense – Extension #5

Get your new IntelliSense features in the XAML Editor!

If you’ve grown accustomed to the new Pascal Casing and List filtering features in IntelliSense, the Visual Studio 2010 XAML Editor IntelliSense extension will give you these features plus more in the XAML editor.

To Install

The project is hosted at http://karlshifflett.wordpress.com/2010/03/21/visual-studio-2010-xaml-editor-intellisense-presenter-extension/

To Use

Start typing in any XAML editor to bring up IntelliSense. Now at first, you may not see a difference. But say you type in “Button”, you’ll see the Pascal Case narrowing (provided you left that option enabled by default, as circled below).

pascal casing in XAML Editor

You can also specify matching based on filter type. For example, say you didn’t want to see any namespaces, you can disable it.

narrowing list based by filter

For more information

Check out the blog post for this extension: http://karlshifflett.wordpress.com/2010/03/21/visual-studio-2010-xaml-editor-intellisense-presenter-extension/

Editor Guidelines UI – Extension #4

Add Guidelines to your code!

Over 5 years ago, I wrote my very first tip about Visual Studio on Guidelines, a hidden feature to enable visual column indicators to the editor.

Finally, through this extension, we have a way to set and customize guidelines through the UI without manually changing registry keys.

Editor showing a guideline and its UI

The registry key will work on versions 2002, 2003, 2005, and 2008. However, the registry key will not work on VS 2010 without this extension.

To Install

This write-up is for two extensions:

  • Editor Guidelines – This extension puts the guidelines feature back
  • Editor Guidelines UI – This extension extends the Editor Guidelines extension such that UI can be used instead of manually editing the registry.

Please see my post How To Install Visual Studio Extensions.

To Use

If you’re just using the first extension, you’ll have to manually edit the registry yourself, so use at own risk. The key is the same as previous versions, which is [HKCU]\Software\Microsoft\VisualStudio\10.0\Text Editor. You’ll create a new REG_SZ string with for example “RGB(0,255,0) 100” to set a green guideline on column 100.

If you’re using the second extension, things are a lot simpler.

Just right-click wherever you wish to place the guideline, and from the context menu, select Add guideline. To remove, put your cursor on the column where you wish to remove the guideline, and right-click, and select Remove guideline.

To Customize

From the same context menu, you can select Guideline Color and get the standard color palette control.

standard color palette

Apologies for the delayed post. I was giving talks on Visual Studio and some of the extensions in Europe last week, but never had a chance to blog about them!