AppCode
 
Get AppCode

File templates

Last modified: 02 February 2023

Configure: Ctrl+Alt+S Preferences | Editor | File and Code Templates

File templates are specifications of the default contents for new files that you create. Depending on the type of file you are creating, templates provide initial code and formatting expected in all files of that type (according to industry or language standards, your corporate policy, or for other reasons).

AppCode provides predefined templates for all supported file types suggested when you create a new file.

By default, the list of templates contains only predefined templates provided by AppCode. Some of them are internal, which means they cannot be deleted or renamed. AppCode shows the names of internal templates in bold. The names of templates that you modified, as well as custom templates that you created manually, are shown in blue.

The following procedures describe how to create file templates. Similar procedures can be used for creating include templates.