Skip to Main Content Skip to Search
Product Documentation

Adjust Editor Appearance

See also:

Line and Column Number Indicators

Line numbers display along the left side of the Editor window. The line and column numbers for the current cursor position display on the right side of the Editor status bar.

To set preferences for displaying line numbers:

  1. Select File > Preferences > Editor/Debugger > Display.

  2. Select or clear Show line numbers, and then click OK.

Right-Side Text Limit Indicator

By default, a light gray vertical line (rule) appears at column 75 in the Editor, indicating where a line exceeds 75 characters. You can set this text limit indicator to another value, which is useful, for example, if you want to view the code in another text editor that has a different line width limit.

To hide, or change the appearance of the vertical line, change Display preferences by selecting File > Preferences > Editor/Debugger > Display.

Cursor Location Indicator — Class, Function, or Subfunction

The right side of the Editor status bar shows the class, function, or subfunction where the cursor is currently placed, depending on the type of file you are viewing:

Display Two Parts of a File Simultaneously

You can simultaneously display two different parts of a file in the Editor by splitting the screen display, as shown in the image that follows. This feature makes it easy to compare different lines in a file or to copy and paste from one part of a file to another.

See also Position Documents for instructions on displaying multiple documents simultaneously.

Image of Editor showing a horizontal splitter. Double-click the splitter to remove the split. Drag the splitter to resize the views.

The following table describes the various ways you can split the Editor and manipulate the split-screen views. When you open a document, it opens unsplit, regardless of its split status it had when you closed it.

OperationInstructions

Split the screen horizontally.

Do either of the following

  • Select Window > Split Screen > Top/Bottom.

  • If there is a vertical scroll bar, as shown in the illustration that follows, drag the splitter bar down.

Split the screen vertically.

Do either of the following:

  • Select Window > Split Screen > Left/Right.

  • If there is a horizontal scroll bar, as shown in the illustration that follows, drag the splitter bar from the left of the scroll bar.

Specify the active view.

Do either of the following:

  • Select Window > Split Screen > Switch Focus.

  • Click in the view you want to make active.

Updates you make to the document in the active view are also visible in the other view.

Remove the splitter

Do one of the following:

  • Double-click the splitter.

  • Select Window > Split > Screen > Off.

Image of Editor showing the splitters as described in the text preceding the image.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS