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 AssignmentsThis 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:
All content is property of www.snowball.be. Nothing on this site can be copied or published elsewhere, unless otherwise stated.
This site is made by Gill Cleeren.
Questions? Opinions? E-mail