Mike on the MATLAB Desktop

December 8th, 2008

New settings for Editor limit line

Not all of our new features are as complex and headline-earning as the Current Directory or Function Browser. Sometimes we quietly introduce small features or enhancements. Did you notice that the character limit line in the editor went from pink to gray?

The right-hand line went from pink to gray in MATLAB R2008b

The line is customizable now, so if 1 pixel gray does not do it for you, go ahead and change the width, color, and placement from the preferences (File -> Preferences -> Editor -> Display).

Change the limit line appearance in File - Preferences - Editor - Display

This was one of our smaller enhancements in the latest release, but a useful one none the less, especially for laptop users where some colors are hard to see. Additionally, it’s the first thing I contributed as a new member of the desktop team over a year ago!

6 Responses to “New settings for Editor limit line”

  1. Ken replied on :

    I like to slide my line-limit out to 100 characters, use a color of RGB: 210, 210, 210 and keep the 1 pixel default thickness. What settings do others use?

  2. Rodney Thomson replied on :

    Our coding standard here enforces an 80 character limit (derived from standard terminal width).

    Aside from that I’m still pretty in pink (2008a here) and will probably keep it that way as its non intrusive.

    I was rather lost this week when I discovered that Visual Studio 2005 did not have an easy way to generate a similar guide (had to do it via the registry!)

  3. John replied on :

    Sorry for posting in the wrong place, but do anyone know if exist a function for binomial coeficients that works as a symbolic function?

    Thanks

  4. Mike replied on :

    John,

    You’re definitely asking in the wrong place. At best I can point you to the Symbolic Math Toolbox documentation, the MATLAB newsgroup, or technical support.

  5. Mike replied on :

    Rodney,

    Thanks. When you upgrade to 8b, because there was no previous preference you’ll go to gray automatically. But you can always set it back.

  6. Ben replied on :

    Nice feature.
    But there is one thing I found confusing:
    Even after changing the POSITION of the character limit LINE,
    comments are still word-wrapped at the old limit.
    To change word-wrapping I had to look for yet another setting in the preferences.

    Ben

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


MathWorks
Mike works on the MATLAB Desktop team.

These postings are the author's and don't necessarily represent the opinions of The MathWorks.