User`s guide
New Features
2-3
Editor/Debugger
The Editor/Debugger has the following enhancements:
•You can set bookmarks in M-files in the Editor/Debugger so that you can go
directly to a particular line in the file. To set a bookmark, position the cursor
at the line you want to bookmark, and then select
Set/Clear Bookmark from
the
Edit menu.
After setting bookmarks, you can go to the next or previous bookmark in a
file. This allows you to go directly to a marked spot. Use the
Edit menu items
Next Bookmark and Previous Bookmark to navigate. Bookmarks are not
saved when you close a file.
•You can include line numbers when printing files from the Editor/Debugger.
To include line numbers, select
Preferences -> Editor/Debugger ->
Printing
. Under Print options, check Print line numbers.
•You can use keyboard shortcuts to comment or uncomment a selection in the
Editor/Debugger. The shortcuts are platform dependent and are listed with
the menu items on the Editor/Debugger
Text menu.
•In the
Find/Replace dialog box, settings for Match case, Whole word, and
Wrap around are remembered for the next MATLAB session.
•You can find the previous occurrence of a selection in the Editor/Debugger by
pressing
Ctrl+Shift+F3. You can also find the previous occurrence of a string
you entered into the
Find & Replace dialog box by pressing Shift+F3.
•When you move an arrow key over a token, for example, an opening
parenthesis, (, the token and its match are briefly underlined. If there is no
matching token, the token appears with a strike-through mark, .
•When you run a file from the Editor/Debugger and the file is not in a
directory on the search path or in the current directory, a dialog box appears
presenting you with options that allow you to run the file. You can either
change the current directory to the directory containing the file, or you can
add to the search path the directory containing the file.
If the file you want to run is already in a directory on the search path or in
the current directory, the current directory remains as is and there are no
actions you need to take.