# jEdit 2.6 User's Guide

Next, Prev

## Chapter 4. Advanced Features

# Working With Lines

An entire line can be selected by triple-clicking with the mouse. If you triple-click and drag, the resulting selection will start and end on line boundaries. Because mouse clicks cannot be recorded in macros, you can use the Edit>Selection>Select Line command (keyboard equivalent: Control-E L) to select the current line when recording a macro.

Edit>Go to Line (keyboard equivalent: Control-L) moves the caret to a specified line. Edit>Select Line Range (keyboard equivalent: Control-E Control-L) selects all text between two line numbers (inclusive).

Edit>Lines>Scroll to Current Line (keyboard equivalent: Control-E Control-J) centers the current line on the screen.

Edit>Lines>Join Lines (keyboard equivalent: Control-J) removes any whitespace from the start of the next line and joins the current and next lines. This will beep if the caret is on the last line of the buffer. For example, invoking Join Lines on the first line of the following Java code:

    new Widget(Foo
           .createDefaultFoo());

Will change it to:

    new Widget(Foo.createDefaultFoo());

Edit>Lines>Delete Line (keyboard equivalent: Control-D) will delete the current line. Edit>Lines>Delete to Start Of Line (keyboard equivalent: Shift-Backspace) and Edit>Lines>Delete to End Of Line (keyboard equivalent: Shift-Delete) delete all text from the caret to the start and end of the line, respectively.

Home, Up
Prev: Working With Words
Next: Working With Paragraphs