AppCode 2019.2 Help

Manage directories

AppCode indexes your project files to enable such features as search, navigation, code completion, code generation, and refactorings. However, your project may contain files for which these features are unneeded, for example, logs, binaries, or imported libraries. This is also possible that AppCode, in contrary, may not consider some of your source/header files as project files.

In such cases you can use the Mark directory as option to specify explicitly how the IDE should treat a certain directory of your project.

Mark directory as menu

Exclude a directory from indexing

If you don't want AppCode to index a certain directory of your project, do the following:

  1. In the Project tool window (⌘1), switch to the Files, Project Source Files, or Project Non-Source Files view.

  2. Right-click the directory you want to exclude, and select Mark Directory as | Excluded.

Code generation, code completion and refactorings won't be available for this directory. The files won't appear in search results unless you select this directory explicitly in the Find in Path dialog (⌘1). The directory is marked as excluded the Excluded directory icon.

To include the directory back again, right-click it and select Mark Directory as | Cancel Exclusion.

Mark a directory as a library

If AppCode considers an imported library as project files, do the following:

  1. In the Project tool window (⌘1), switch to the Files, Project Source Files, or Project Non-Source Files view.

  2. Right-click the directory with source/header files, and select Mark Directory as | Library Files.

Code generation, code completion and refactorings won't be available for this directory. However, you can choose if these files should be included in search results.

To include libraries in search results:

  • In Find in Path dialog (⇧⌘F): narrow down your search by selecting the Files and Frameworks scope.

  • When searching everywhere (double ): check Include non-project items or select Files and Frameworks form the list in the top right corner of the window.

To unmark the directory, right-click it and select Mark Directory as | Unmark.

Mark a directory as project sources and headers

If you have a folder with source/header files, but the IDE doesn't consider them as project files, do the following:

  1. In the Project tool window (⌘1), switch to the Files, Project Source Files, or Project Non-Source Files view.

  2. Right-click the directory with the source/header files, and select Mark Directory as | Project Sources and Headers.

To unmark the directory, right-click it and select Mark Directory as | Unmark.

Last modified: 25 July 2019