![]() ![]() Otherwise, the position of a code construct is determined by the current indentation level. Wrap always - Select this option to wrap all elements in lists so that there is one element per line with proper indentation.Ĭhop down if long - Select this option to wrap elements in lists that go beyond the right margin so that there is one element per line with proper indentation.Īlign when multiline - If this checkbox is selected, a code construct starts at the same column on each next line. Wrap if long - Select this option to wrap lines that go beyond the right margin with proper indentation. If your code contains lines that are shorter than a standard convention, you can convert them by disabling the Line breaks checkbox before reformatting.Ī wrapping style applies to various code constructs, specified in the left-hand pane (for example, method call arguments, or assignment statements).ĭo not wrap - When this option is selected, no special wrapping style is applied, the nested alignment and braces settings are ignored. For example, by default, the Line breaks checkbox is selected. Use the checkboxes to configure exceptions that RubyMine 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. In this field, specify multiple right margins. No: if you choose this option a line can exceed the value specified in the right margin. Yes: choose this option to use the value from the Right Margin field. In this field, specify how the edited text is fitted in the specified Hard wrap at field.ĭefault: choose this option to use the Wrap on typing value from the global settings. If you accept the Default option then the value from the global settings is used. In this field, specify the number of spaces required to the right of an element. Check the results in the Preview pane.Īlignment takes precedence over indentation options. In this tab, customize the exceptions, brace placement and alignment options that RubyMine will apply to various code constructs on reformatting the source code. Select the checkboxes next to the description of relevant locations and check the results in the Preview pane. Use this tab to specify where you want RubyMine to insert spaces automatically. The checkbox is available only when the Indent chained methods checkbox is selected. ![]() When the checkbox is cleared, the second and further methods in a chain are aligned with the object on which they are invoked. When the checkbox is selected, the second and further methods in a chain are aligned with the first call. In declarations of functions, the second and further methods in a chain are displayed on a separate line. If the checkbox is cleared, RubyMine deletes the tab characters and spaces on empty lines. If this checkbox is selected, RubyMine retains indents on 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 that fits in a tab. The Smart Tabs checkbox is available if the Use tab character checkbox is selected. This means that after reformatting 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 that results from nesting contains both tabs and spaces (if necessary), while the part defined by alignment consists only of spaces. One part results from nesting code blocks, and the other part is determined by alignment. ![]() ![]() If the checkbox is cleared, RubyMine uses spaces instead of tabs.Īn indentation consists of two parts. 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 |