AppCode 2016.2 Help

Code Style. CocoaPods

AppCode | Preferences | Editor | Code Style | CocoaPods pod for OS X


Use this page to configure formatting options for CocoaPods pod files. View the result in the Preview pane on the right.

On this page:

Tabs and Indents

Tabs and Indents

ItemDescription
Use tab character
  • If this check box is selected, tab characters are used:
    • On pressing the key
    • For indentation
    • For code reformatting
  • When the check box is cleared, AppCode uses spaces instead of tabs.
Smart tabs
  • If this check box is selected, AppCode inserts tabs for indentation and reformatting. AppCode inserts tabs in the beginning of each line until a symbol other than the tab is inserted. After that when you press the tab key, AppCode will enter spaces.
  • If this check box is cleared, only tabs are used. This means that a group of spaces that fits the specified tab size is automatically replaced with a tab, which may result in breaking fine alignment.

The Smart Tabs check box is available if the Use Tab Character check box is selected.

Tab sizeIn this text box, specify the number of spaces included in a tab.
IndentIn this text box, specify the number of spaces (or tabs if the Use Tab Character check box is selected) to be inserted for each indent level.
Continuation indentIn this text box, specify the number of spaces (or tabs if the Use Tab Character check box is selected) to be inserted between the elements of an array, in expressions, method declarations and method calls.

Other

ItemDescription
Keep line breaksSelect this check box to have AppCode honor line breaks when reviewing pod files in the editor.
Align multiline list items If this check box is selected, a list item starts at the same column on each next line. Otherwise, the position of a list item is determined by the current indentation level.
Align right parts of assignments or hashesIf this check box is selected, right parts of assignments or hashes are aligned.
Indent when casesIf this check box is selected, when is located at the corresponding indent level. Otherwise, when is placed at the same indent level with case.
Spaces around curly bracesIf this check box is selected, spaces are inserted before and after each curly brace.
Spaces around arrowsIf this check box is selected, spaces are inserted before and after each arrow.
Keep blank lines in declarationsIn the text boxes in this area, specify the number of blank lines to be present in declarations.
Blank lines around methodsIn the text boxes in this area, specify the number of blank lines to be inserted before and after each method.

See Also

Reference:

External Links:

Last modified: 20 July 2016