There are several ways to move around code editors:

Navigating with the mouse and keyboard

The most common way to navigate text is with the mouse and cursor motion keys:

The keystrokes most commonly used to navigate around a document are:

Keystroke Description

Up

Moves the cursor up one line.

Down

Moves the cursor down one line.

Left

Moves the cursor left one character.

Right

Moves the cursor right one character.
Home Moves the cursor to the first character on the line. Pressing Home a second time moves the cursor to the first column.
End Moves the cursor to the end of the line.
PageUp Moves the cursor up one page.
PageDown Moves the cursor down one page.

Ctrl+Left

Moves the cursor left one word.
Ctrl+Right Moves the cursor right one word.

Ctrl+Up

Moves the cursor to the previous function.
Ctrl+Down Moves the cursor to the next function.
Ctrl+Home Moves the cursor to the start of the document.
Ctrl+End Moves the cursor to the end of the document.
Alt+Up Scrolls the document up by one line.
Alt+Down Scrolls the document down by one line.

Go to line

To move the cursor to a particular line number, do one of the following:

—or—

Selecting Text

Selecting text with the keyboard

You can select text using the keyboard by using Shift with the navigation keys.

Selecting text with the mouse

Matching delimiters

The editor can find the matching partner for delimiter characters such as (),  [], {}, <>.

To match a delimiter
To select a delimited range