Does Resharper 4.1 support both Camel Humps and regular selection modes?

I found the setting for the camel humps in the Reshar:

Resharper -> Options -> Editor -> Using CamelHumps

The problem is that I would still like to use the normal selection mode (i.e. the default behavior for CTRL + Arrow and CTRL + SHIFT + Arrow) as well as CamelHumps mode.

For example, consider this variable:

private int MyVeryLongCamelCaseName;

Now, if I want to copy the entire variable, I want the default behavior for CTRL + SHIFT + Left-Arrow to be used to select the entire variable if the cursor is on M.

However, if I want to change the name to say MyExtremelyLongCamelCaseName, then I would like CamelHumps behavior to be provided by Resharper.

Is there a way to have both behaviors with different labels?

+6
camelcasing resharper devtools
source share
3 answers
  • disable CamelHumps in Resharper -> Options -> Editor -> Use CamelHumps.
  • go to Tools → Options → Keyboard and
    • bind the keys you want "Resharper.HumpNext" and "ResharperHuntPrev" (I use alt + left / alt + right)
    • and bind the keys to "Resharper.HumpNextExtent" and "Resharper.HumpPrevExtent" to select shortcuts. (I had to remove the key bindings for shift + alt + left / right from "Edit.Char [Left / Right] ExtentColumn").
+9
source share

I think ctrl + W shotkey will help.

+2
source share

I do not think there is an opportunity for this, but, as work, you can use the Extend Selection shortcut, which is CTRL + ALT + Right. Not perfect, but faster than hitting CTRL + SHIFT + Several times for a character with a large number of camel humps.

0
source share

All Articles