dotPeek Web Help

CamelHumps

CamelHumps is a feature that identifies parts of compound names composed according to CamelCase, where each part starts with a capital letter, or compound names separated by underscore,

In this topic:

CamelHumps in search commands

CamelHumps always works in all Search by Name commands, namely Go to Everything/Type, Go to Assembly, Go to File Member, and Go to Symbol It is very convenient to type capital letters and get the list of available symbols with matching names:

Navigation_and_Search__CamelHumps__uppercase_letter_dotPeek

Even better, type lowercase letters, dotPeek will recognize and match them as well:
Navigation_and_Search__CamelHumps__lowercase_letter_dotPeek

CamelHumps in typing assistance actions

CamelHumps can also work for Extend/Shrink Selection, and typing assistance commands that ReShaper overrides in Visual Studio:

  • Extend Selection to Next/Previous Word ( Ctrl+Shift+Right Arrow / Ctrl+Shift+Left Arrow)
  • Go to Next/Previous Word ( Ctrl+Left Arrow / Ctrl+Right Arrow)

To enable CamelHumps in typing assistance actions

  1. On the main menu, choose Tools | Options .
  2. Go to the Environment | Viewer options page.
  3. Use the Use CamelHumps check box to toggle CamelHumps support in typing assistance features.
  4. Click OK.

If the CamelHumps is enabled here, the Next/Previous Word command works in a slightly different way. When you press Ctrl+Right,Arrow/Left,Arrow, the caret moves to the next/previous upper case character in the current word, and only after the last uppercase character in word, it moves on to the next/previous word.

The Extend/Shrink Selection commands also work differently with CamelHumps. Suppose you've placed the caret in the middle of a compound word with several parts that begin with upper case letters:

ExtendSelection_CamelHumps_1
If CamelHumps is switched on, then pressing Ctrl+W for the first time selects the current part of the word:
ExtendSelection_CamelHumps_2
Only after pressing this keystroke for the second time ReSharper selects the whole word:
ExtendSelection_CamelHumps_3
All subsequent presses are processed as usual.

See Also

Last modified: 5 December 2014
comments powered by Disqus