Search code examples
resharperdevtoolscamelcasing

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


I've found the setting for Camel Humps in resharper:

Resharper -> Options -> Editor -> Use CamelHumps

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

For example consider this variable:

private int MyVeryLongCamelCaseName;

Now if I want to copy the entire variable then I want the VS default behaviour for CTRL+SHIFT+Left-Arrow which is to select the entire variable if the cursor is on the M.

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

Is there any way to have both behaviours with different shortcuts?


Solution

    • disable CamelHumps in Resharper -> Options -> Editor -> Use CamelHumps.
    • go to Tools -> Options -> Keyboard and
      • bind the keys you want to 'Resharper.HumpNext' and 'ResharperHuntPrev' (I use alt+left / alt+right)
      • and bind keys to 'Resharper.HumpNextExtent' and 'Resharper.HumpPrevExtent' for selection shortkeys. (I had to remove keybindings for shift+alt+left/right from 'Edit.Char[Left/Right]ExtentColumn' first)