Code Style. CocoaPods
Use this page to configure formatting options for CocoaPods pod files. View the result in the Preview pane on the right.
Tabs and Indents
Tabs and Indents
Item | Description |
---|---|
Use tab character |
|
Smart tabs |
The Smart Tabs checkbox is available if the Use Tab Character checkbox is selected. |
Tab size | In this text box, specify the number of spaces included in a tab. |
Indent | In this text box, specify the number of spaces (or tabs if the Use Tab Character checkbox is selected) to be inserted for each indent level. |
Continuation indent | In this text box, specify the number of spaces (or tabs if the Use Tab Character checkbox is selected) to be inserted between the elements of an array, in expressions, method declarations and method calls. |
Other
Item | Description |
---|---|
Keep line breaks | Select this checkbox to have AppCode honor line breaks when reviewing pod files in the editor. |
Align multiline list items | If this checkbox 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 hashes | If this checkbox is selected, right parts of assignments or hashes are aligned. |
Indent when cases | If this checkbox is selected, |
Spaces around curly braces | If this checkbox is selected, spaces are inserted before and after each curly brace. |
Spaces around arrows | If this checkbox is selected, spaces are inserted before and after each arrow. |
Keep blank lines in declarations | In the text boxes in this area, specify the number of blank lines to be present in declarations. |
Blank lines around methods | In the text boxes in this area, specify the number of blank lines to be inserted before and after each method. |