AppCode Web Help

Code Style. Code Generation


AppCode | Preferences | Code Style - Code Generation
⌘,

settings

Use this page to configure formatting options for generated code.

General

Item Description
Line comment at first column Select this check box to have generated line comments placed in the first column.
Block comment at first column Select this check box to have generated block comments placed in the first column.

Objective C

Item Description
Prefix for instance variables
Suffix for instance variables
In these text boxes, type the prefixes and suffixes to be used when generating instance variables.
Retain object parameters in initWith... Select this check box to retain object parameters when generating initWith. This option will not work unless Automated Reference Counting is disabled.
Use property setters in initWith... Select this check box to use property setters when generating initWith. This option will not work unless instant variable has a synthesized property.
Semicolon after method signature in implementation Select this check box to insert a semicolon after method signature when generating method implementation.
Put ivars to implementation if possible Select this check box to insert instant variables where possible when generating implementation.
Use NSInteger and CGFloat in introduce variable Select this check box to use NSInteger and CGFloat in introduce variable. Otherwise int and float will be used.

Ivars release style (for 'dealloc')

Choose instant variables release style for dealloc method. The available options are:

  • [ivar release]
  • [ivar release], ivar=nill
  • property=nill

Generate ivar declarations for properties

Choose the behaviour for generating instant variable declarations for properties. The available options are:

  • Always generate
  • Never generate
  • Ask

See Also

Web Resources:

Last modified: 9 December 2014
comments powered by Disqus