![]() Otherwise, such comments will align with the next line of code.īlocks and (trailing) closures in one line If this option is selected, comments placed at the first column won't change their position after reformatting the code. Otherwise, the lines that are shorter than a standard convention will be merged into one line. If this option is selected, line breaks will be kept after reformatting the code. ![]() If your code contains lines that are shorter than a standard convention, you can convert them by disabling the Line breaks checkbox before you reformat the source code. For example, by default, the Line breaks checkbox is selected. Use the checkboxes to configure exceptions that AppCode will make when reformatting the source code. If you want to specify several margins, enter numbers separated by comma. You can leave a default value or enter the number of spaces for your margin. Use the Visual guides field to specify multiple right margins. No: in this case this option is switched off and a line can exceed the value specified in the right margin. Yes: in this case AppCode uses the value specified in the Right Margin field. Use the Wrap on typing settings to specify how the edited text is fitted in the specified Hard wrap at:ĭefault: in this case AppCode uses the Wrap on typing option that is specified in the global settings. ![]() If you select the Default option, then a value of the right margin from the global settings is used. Use the Hard wrap at field to specify a margin space required on the right side of an element. The left-hand pane contains the list of exceptions ( Keep when reformatting), and placement and alignment options for the various code constructs (lists, statements, operations, annotations, and so on) The right-hand pane shows the preview.Īlignment takes precedence over indentation options. In this tab, customize the code style options, which AppCode will apply on reformatting the source code. The results are displayed in the preview pane. To have AppCode automatically insert a space at a location, select the checkbox next to this location in the list. Use this tab to specify where you want spaces in your code. The option is available when the Follow code indent is selected. Indent children: if the checkbox is selected, the statements within conditional compilation blocks will be indented. If this checkbox is selected, the multiline strings will be indented.įollow code indent: if the checkbox is selected, conditional compilation blocks will be indented to match the surrounding code. You can set up the chained method indentation style in Wrapping and Braces | Chained method calls. In this field, specify the number of spaces to be inserted before each chained method call. If this checkbox is cleared, AppCode will delete the tab characters and spaces. If this checkbox is selected, AppCode will keep indents on the empty lines as if they contained some code. In this field, specify the number of spaces to be inserted between the elements of an array, in expressions, method declarations and method calls. ![]() In this field, specify the number of spaces to be inserted for each indent level. In this field, specify the number of spaces included in a tab. The Smart tabs checkbox is available if the Use tab character checkbox is selected. 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. If this checkbox is cleared, only tabs are used. If this checkbox is selected, the part of indentation defined by the nesting of code blocks, is made of the tabs and (if necessary) spaces, while the part of indentation defined by the alignment is made only of spaces. When the checkbox is cleared, AppCode uses spaces instead of tabs. If this checkbox is selected, tab characters are used: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |