What is the difference between collapsed and delete




















You can also configure the tab size if you need. By default, when you paste anything in the editor, IntelliJ IDEA performs "smart" paste, for example, pasting multiple lines in comments will automatically add the appropriate markers to the lines you are pasting. In the dialog that opens, select your entry and click Paste. When you copy and paste code to the editor, IntelliJ IDEA displays the hidden special characters represented by their Unicode name abbreviation.

To sort lines alphabetically in the whole file or in a code selection, from the main menu, select Edit Sort Lines or Edit Reverse Lines. These actions might be helpful when you work with property files, data sets, text files, log files, and so on. If you need to assign shortcuts to those actions, refer to Configure keyboard shortcuts for more information.

Keep pressing the keys until all the needed elements are joined. You can also join string literals, a field or variable declaration, and a statement. To split string literals into two parts, press Enter. For example, for Java you can use these actions for method invocation or method declaration arguments, enum constants, array initializer expressions. IntelliJ IDEA inserts the required trailing comma automatically in structs, slices, and other composite literals.

The caret is moved to the position where you can start typing the next statement. To make it easier to distinguish between statements to be extracted and statements to be removed, IntelliJ IDEA uses different background colors.

Select an action and press Enter. To copy a code selection, keeping Ctrl pressed, drag it to the target location. The drag functionality is enabled by default. Folded code fragments are shown as shaded ellipses.

IntelliJ IDEA collapses or expands all fragments within the selection, or, if nothing is selected, all fragments in the current file, for example, all methods in a file. IntelliJ IDEA collapses or expands the current fragment and all its subordinate regions within that fragment.

You can expand the current fragment up to the specified nesting level from 1 to 5. You can expand the collapsed fragments up to the specified nesting level from 1 to 5. You can collapse or expand code using the Surround With action.

Folded code fragments, normally, are shown as shaded ellipses. If the folded code block contains errors, JetBrains Rider highlights the folded fragment in red. Code folding toggles , or. These toggles are shown in the editor to the left of the corresponding folding regions. If a region is unfolded, indicates the beginning of the region while is located at its end. For folded regions, the toggle is shown as. If you hold the Alt key and click , or , the region is collapsed or expanded recursively, for example along with all its subordinate regions.

Commands of the Folding menu and associated keyboard shortcuts. The Folding menu can be accessed from the main menu Code Folding , or as a context menu in the editor.

The shortcuts are shown right in the menu. See Commands of the Folding menu and associated shortcuts. Folded fragments themselves: click to expand the corresponding fragment. See also, Viewing folded code fragments. Predefined regions that correspond import declarations, method bodies, classes, documentation comments, etc. For the predefined regions, the folding toggles are available right away, without the need to perform any additional actions.

Any selected code fragment.



0コメント

  • 1000 / 1000