![]() ![]() Wrapped aligned: align and move all members of the clause to a new line. Wrapped unindented: move all members of the clause to a new line without adding an indent. Same line aligned: align all members of the clause, keep the first member on the same line with a parenthesis. Select On the same line to keep the opening parenthesis on the line with the keyword.Ĭhange the position of elements in relation to the opening parenthesis. Move clause elements that follow VALUES on a new line.Īlign or indent the opening parenthesis under the first keyword on the line. The As in common option means that the behavior of the selected option must duplicate the behavior of the analogous option in the Common section on the Queries tab. Move clause elements that follow INTO on a new line. Move INTO and clause elements that follow INTO on a new line. Move all section elements under the section main keyword (a header). Keep section elements under section header To enable this option only for subqueries, select Subqueries only. The length of a statement that will be collapsed is determined automatically by DataGrip. If you want to disable a new line after the comma when the To begin option is enabled, clear the Line breaks checkbox on the Wrapping tab. This option works only if you have more than three cases in a single context. The Auto option will move the third occurrence of the comma to the beginning. For example, you have three occurrences of a comma: two commas go at the beginning, one comma is at the end. The Auto option analyzes the surrounding context and calculates the most suitable place for a comma. Move a comma ( ,) to the beginning ( To begin) or to the end ( To end) of a code line. ![]() You will see a yellow warning if at least one preference on the page is overridden by EditorConfig styles for the current file, each overridden preference will also be highlighted with yellow.Move clause elements to a new line ( New line) or leave them on the same line ( Same line). editorconfig files that affect your solution, preferences on this page could be overridden by EditorConfig styles. ReSharper's settings are saved in settings layers, which allow you to have different settings for different solutions and to share your settings with your team. When ReSharper produces new code with code completion and code generation features, applies code templates and performs refactorings. When code is automatically formatted on editing or after pasting (you can toggle auto-formatting on the Environment | Editor | Behavior page of ReSharper options ( Alt+R, O). The options that you configure on this page apply in the following cases: allow you to keep existing formatting for other preferences in the same group. Note that preferences with names starting with Keep existing. ![]() To find the EditorConfig properties that correspond to each preference, refer to EditorConfig properties for C#: Line Breaks. You can adjust the values and check the preview pane at the bottom of the page to see how your preferences affect the code.įormatting preferences listed on the page can be also configured via EditorConfig. Use this page to configure how ReSharper should add or remove line breaks before/after specific language constructs, and whether to wrap long lines exceeding the length specified by the Hard wrap at preference.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |