TypeScript-aware coding assistance

Parameter hints and type information

Parameter hints show the names of parameters in methods and functions to make your code easier to read. To see the inferred type for an object, hold ⌘ on macOS or Ctrl on Windows and Linux and hover the mouse pointer over it:

By default parameter hints are shown only for values that are literals or function expressions but not for named objects.To show parameter hints for all arguments:

Select the Use TypeScript Service check box to get native support from the TypeScript Language Service according to the up-to-date specifications. As a result:

Syntax and error highlighting is based on the annotations from the TypeScript Language Service.

Completion lists contain both suggestions from the TypeScript Language Service and suggestions calculated by RubyMine. To get only suggestions from RubyMine, click Configure and clear the Code completion check box in the Service Options dialog that opens.

In the Default options field, specify the command line options to be passed to the compiler when the tsconfig.json file is not found. See the list of acceptable options at TSC arguments. Note that the -w or --watch (Watch input files) option is irrelevant.

By default, the Use TypeScript Service check box is selected.

Common and TypeScript-specific refactoring

Common refactoring procedures, such as extract method, inline, rename/move, etc.