Working With Lines
Prev | Chapter 5. Editing Text | Next

## Working With Lines

An entire line can be selected by triple-clicking with the mouse, or using the Edit>More Selection>Select Line command (shortcut: `C+e l`). A selection that begins and ends on line boundaries can be created by triple-clicking and dragging.

Edit>Go to Line (shortcut: `C+l`) prompts for a line number and moves the caret there. A relative offset can be used here, if it is prefixed by a + or a - sign. So for example `-5` moves the caret up by 5 lines.

Edit>More Selection>Select Line Range (shortcut: `C+e C+l`) prompts for two line numbers and selects all text between them.

Edit>Text>Delete Line (shortcut: `C+d`) deletes the current line.

Edit>Text>Delete to Start Of Line (shortcut: `CS+BACK_SPACE`) deletes all text from the start of the current line to the caret.

Edit>Text>Delete to End Of Line (shortcut: `CS+DELETE`) deletes all text from the caret to the end of the current line.

Edit>Text>Join Lines (shortcut: `C+j`) removes any whitespace from the start of the next line and joins it with the current line. The caret is moved to the position where the two lines were joined. For example, if you invoke Join Lines with the caret on the first line of the following Java code:

    new Widget(Foo
           .createDefaultFoo());

It will be changed to:

    new Widget(Foo.createDefaultFoo());

Prev | Up | Next
Working With Words | Home | Working With Paragraphs