Naming Assistant

The name for a new identifier is often created on the base of surrounding code and the identifier type. This information is used in CodeRush to suggest the name for the identifier you are about to create. The Naming Assistant feature will help you give names to new members, variables, and parameters. A Naming Assistant window is automatically opened when you start typing a new name. It holds a list of naming suggestions.

Typing_NS_int

You can confirm an initially-selected item using the Tab key, or select the desired option using the arrow keys and confirm it using the Tab or Enter key. You can also use the mouse to interact with the Naming Assistant window.

This list of suggestions is generated from the following data.

  • Identifier names used in the solution and in the current member.
  • The identifier type name.
  • The identifier role (variable, parameter, or member).

The list of suggestions is filtered automatically as you type. The filtering algorithm allows you to use word parts and abbreviations. For instance, the "sl" input string can produce the following suggestions:

  • spanLine
  • slider
  • adornmentStartLine
  • SCROLL_LOCK
  • etc.

Typing_NA_GIF