Is there a Visual Studio plugin (preferably Resharper) that has camel case selection [duplicate]

StackOverflow https://stackoverflow.com/questions/601422

  •  03-07-2019
  •  | 
  •  

Question

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

Was it helpful?

Solution

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

OTHER TIPS

I think Visual Assist X does what you described.

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top