views:

338

answers:

4

Exact duplicate of this thread

I have some quite long variable / field names in my code and I'm finding the default behaviour for CTRL+SHIFT+Right-Arrow and CTRL+SHIFT+Left-Arrow to be less productive than if it were to adhere to camel casing. Here's an example.

Say the cursor is before the A in AndAnotherThing. CTRL+SHIFT+Right-Arrow will select the entire variable while adherance to camel casing would only select And.

Is there any tool or plugin for Visual Studio that can do this?

Edit:

I'd also like similar behaviours for CTRL+Left-Arrow and CTRL+Right-Arrow

+1  A: 

I think Visual Assist X does what you described.

idursun
A: 

Well, it's not quite what you're asking for, but Resharper has a very useful (but hard to find out about) feature where it respects camelCase by allowing you to type just the Capital Letters of the name.

For example, if you have this declaration

List<int> myList;

then when you could type

myList.ARO|

and the Resharper intellisense will have automagically selected AsReadOnly as the completion.

Works for GotoType and GotoMember as well.

Bevan
+3  A: 

Resharper supports it, select Use CamelHumps in ReSharper | Options | Editor and it will work as you expect.

CMS
A: 

This is a duplicate of this question, see answers there...

Dror
Thanks. I did search quite a bit for it. Looks like search needs some work on SO.
Jonathan Parker