Convert to System Type/Built-in Type

Purpose

This Refactoring enables you to switch between the .NET Framework type names and their keyword aliases.

Availability

Available when the caret is on a type reference.

Usage

  1. Place the caret on a type reference.

    Note

    The blinking cursor shows the caret's position at which the Refactoring is available.

    int ID;
    
  2. Use the Ctrl + . or Ctrl + ~ shortcut to invoke the Code Actions Menu.
  3. Select Convert to System Type from the menu (Convert to Built-in Type if you need to use a language-specific type).

After execution, the Refactoring switches the CLR type to its keyword alias or vice versa.

Int32 ID;
Note

This feature is available as a part of Code Cleanup.

See Also