AppCode 2018.1 Help

Auto Import


XML

Show import popup

Automatically display an import popup dialog box when typing the name of an unbound namespace.

TypeScript/JavaScript

Add ES6 imports on code completion

  • If this checkbox is selected, AppCode automatically inserts an import statement in JavaScript code when you complete a symbol exported using ES6 exports in another project file:

  • When the checkbox is cleared, on pressing N/A AppCode shows a pop-up that suggests to import the symbol:

    ws es6 autoimport off

  • Completion and auto import also work for React components, including stateless components. AppCode properly detects them, provides code completion, and adds import statements automatically:

Add TypeScript imports automatically

Select this checkbox if you want AppCode to generate import statements in TypeScript code. Use the checkboxes below to choose when import generation will be invoked.
  • On code completion: If this checkbox is selected, AppCode automatically inserts an import statement in TypeScript code when you complete a symbol exported in another project file.

  • With import popup: If this checkbox is selected, AppCode shows a tooltip with an import suggestion when you place the cursor at an unresolved symbol that can be imported. When the checkbox is cleared, you can invoke import generation only be pressing N/A.

  • Unambiguous imports on the fly: With this checkbox selected, AppCode adds import statements when you type your code or paste a fragment with a symbol that is not yet imported if there is only one source to import the symbol from.

Objective C

Show import popup

Automatically display import popup dialog box when typing a name of the class that lacks import statement.

Predeclare

Import

Last modified: 19 September 2019