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

0

3 Answers 3

17

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

Sign up to request clarification or add additional context in comments.

Comments

1

I think Visual Assist X does what you described.

1 Comment

According to Visual Assist's documentation and my own experience, camel casing only affects the code completion feature, not navigation.
-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.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.