Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 982
Jonathan Parker Avatar asked Mar 06 '09 05:03

Jonathan Parker


2 Answers

  • 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)
like image 97
Ronan Avatar answered Nov 07 '22 00:11

Ronan


I think ctrl+W shotkey will help.

like image 2
comrade Avatar answered Nov 07 '22 01:11

comrade