Development Environment    

Arrow and Control Keys to Navigate in the Editor

Following is the list of arrow and control keys you can use in the Editor. Control keys only work if the Keyboard and Indenting preference you select for Key bindings is Emacs.

Key
Control Key
for Emacs Preference Only

Operation 

Ctrl+P
Move to previous line.

Ctrl+N
Move to next line.

Ctrl+B
Move back one character.

Ctrl+F
Move forward one character.
Ctrl+

Move right one word.
Ctrl+

Move left one word.
Home
Ctrl+A
Move to beginning of line.
End
Ctrl+E
Move to end of line.
Delete
Ctrl+D
Delete character at cursor.
Backspace

Delete character before cursor.

Ctrl+K
Delete (kill) to end of line.
Shift+Home

Highlight to beginning of line.
Shift+End

Highlight to end of line.
Ctrl+Home

Move to top of file.
Ctrl+End

Move to end of file.

Going to a Line Number

Select Go to Line from the Edit menu. In the resulting dialog box, enter the Line number and click OK. The cursor moves to that line number in the current M-file.

Going to a Bookmark

You can set a bookmark at a line in a file in the Editor so you can quickly go to the bookmarked line. This is particularly useful in long files. For example, while working on a line, if you need to look at another part of the file, set a bookmark at the current line, go to the other part of the file, and then go back to the bookmark.

To set a bookmark, position the cursor anywhere in the line and select Set Bookmark from the Edit menu. A bookmark icon appears to the left of the line.

To go to a bookmark, select Next Bookmark or Previous Bookmark from the Edit menu.

To clear a bookmark, position the cursor anywhere in the line and select Clear Bookmark from the Edit menu.

Bookmarks are not saved when you close a file.

Going to a Function (Subfunction)

To go to a function in an M-file (referred to as a subfunction), click the function button on the toolbar. Select the function you want to go to from the alphabetical listing of all functions in that M-file. The list does not include functions that are called from the M-file, but only lists lines in the current M-file that begin with a function statement.

The function or subfunction that the current line is part of is shown at the right side of the status bar.

Finding a Selection in the Current File

Within the current file, select a string. From the Edit menu, select Find Selection. The next occurrence of that string is highlighted. Select Find Selection again (or Find Next) to continue finding the next occurrences of the string.

To find the previous occurrence of a selected string (find backwards) in the current file, press Ctrl+Shift+F3, or select Find Previous from the Edit menu. The previous occurrence of that string is highlighted. Repeat to continue finding the previous occurrences of the string.


  Navigating in an M-File Finding and Replacing a String