Visual Studio 2010 double-click to select whitespace is too aggressive

1.2k Views Asked by At

In Visual Studio 2008 double clicking in a large section of whitespace would select all the contiguous whitespace only. Now I am using Visual Studio 2010 and double clicking in a large section of whitespace selects the word preceding and the word following the whitespace as well. This makes cleaning up large sections of whitespace more difficult (for alignment or other reasons). Is there a setting or way to get the older behavior?

3

There are 3 best solutions below

0
On BEST ANSWER

This issue is killing me... glad I'm not the only one. Misery loves company. Anyway, here's a couple of links of MS acknowledging the issue, and a MS feedback post about it. Bottom line, they "may" try to fix it for the next version of VS. Ouch. It's on the Won't Fix list. The work around is a joke. I hope someone figures out a better fix or work around.

Acknowledgment of issue

Feedback post

1
On

This sort-of circumvents the question, but you can do Ctrl+E+D to format the document or Ctrl+E+F for format the selection (which removes the need to select any whitespace).

0
On

You can use the shortcut MAJ + HOME to reproduce the desired behaviour. I know it makes you use the keyboard, but you get used to it, and sometimes it's even helpful.

I know its not really a real solution but I can't write comments yet.