Dear visitor, thanks for stopping by! If you want, you can follow all updates on Snowball.be via RSS. You can also follow me on Twitter or Facebook. More interesting posts from other Microsoft Regional Directors can be found at The Region.
Gill Cleeren     Visual Studio.net     July 7, 2010    

A few weeks ago, Microsoft released the Visual Studio Pro Power Tools, a free set of enhancements and features for Visual Studio 2010. There seems to be a small issue (it’s not really correct to call it a bug) with one of the shortcuts that it adds in combination with a Belgian keyboard layout (which is Azerty).

On the tools download page, you can read the following about the added Align Assignments feature:

Align Assignments
This extension is useful for making your code a little more readable by aligning the assignments when you type Ctrl+Alt+] such that it takes this:

And turns it into this:
 

On an Azerty keyboard, AltGr is used to type the square bracket. No issue there (yet).

The issue appears however when typing an array instantiation:

int [] array = new int]

As you can see, I *wanted* to type new int[], but the opening bracket failed, because of the added shortcut. Instead, the code wants to perform the Align Assignments command. This is a clash of shortcuts that I guess only appears on Azerty keyboard layouts.

The solution is either changing or removing the shortcut for this command, as shown in the image below:

image

  Posted on: Wednesday, July 07, 2010 9:27:46 AM (Romance Daylight Time, UTC+02:00)   |   Comments [0]
         
9/2/2010   9:10:48 PM