9

Possible Duplicate:
Make Visual Studio understand CamelCase when hitting ctrl and cursor keys

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

Community
  • 1
  • 1
Jonathan Parker
  • 6,705
  • 3
  • 43
  • 54

3 Answers3

17

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

Christian C. Salvadó
  • 807,428
  • 183
  • 922
  • 838
1

I think Visual Assist X does what you described.

idursun
  • 6,261
  • 1
  • 37
  • 51
  • According to [Visual Assist's documentation](http://www.wholetomato.com/features/feature-coding-assistance.asp#acro) and my own experience, camel casing only affects the code completion feature, not navigation. – xandriksson Jan 27 '15 at 12:48
-1

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
  • 43,618
  • 10
  • 81
  • 133