ReSharper 8.0 Web Help

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

By default, it works in all Search by Name commands, namely Go To Type, Go To File, Go To File Member, and Go To Symbol , as well as in all Code Completion features. It is very convenient to type capital letters and get the list of available symbols with matching names:
Navigation_and_Search__CamelHumps__uppercase_letter
Even better, type lowercase letters, ReSharper will recognize and match them as well:
Navigation_and_Search__CamelHumps__lowercase_letter

Tip

CamelHumps works perfectly with symbol names that use underscores. For example, you can type iie to look for is_in_empty_code_block.

However, you should take some additional steps to use CamelHumps in Extend/Shrink Selection and Next/Previous Word features.

To enable CamelHumps in Extend/Shrink Selection and Next/Previous Word
  1. On the main menu, choose ReSharper | Options . The Options dialog box opens.
  2. Click Editor on the left pane of the Options dialog box.
  3. Select the Use CamelHumps check box.
  4. Click Save to apply the modifications and let ReSharper choose the settings layer, or choose a particular settings layer in the Save To drop-down list. To learn more about saving ReSharper settings, see JetBrains .NET Tools Blog: Save or Save To in ReSharper Options.

Now, after you've switched CamelHumps on, the Next/Previous Word command works in a slightly different way. When you press Ctrl+Right/Left, the caret moves to the next/previous upper case character in the current word, and only after that, it moves on to the next/previous word.

The Extend/Shrink Selection commands are also affected by 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+WCtrl+Alt+Right or Ctrl+Shift+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.

To change the way code completion filtering works with CamelHumps™
  1. On the main menu, choose ReSharper | Options. The Options dialog box opens.
  2. Click IntelliSense, then click Completion Behavior on the left pane of the Options dialog box.
  3. Clear the Match middle of the identifiers check box on the Completion Behavior pane of the current dialog box.
  4. Click Save or Save To to apply changes.

    Note

    ReSharper maintains several setting layers, so pay attention to what layer you modify. For more information, see Managing and Sharing Options.

This feature is supported in the following languages/technologies:

C# VB.NET HTML ASPX Razor JavaScript TypeScript CSS XML XAML RESX Build Scripts
feature_available feature_available feature_available feature_available feature_available feature_available feature_available feature_available feature_available feature_available feature_available feature_available

Tip

The instructions and examples given here address the use of the feature in C#. For details specific to other languages, see the corresponding topics in the ReSharper by Language section.