Problem with line numbers in editor in R2016a

36 ビュー (過去 30 日間)
Gerrit
Gerrit 2016 年 4 月 28 日
コメント済み: Boris Venet 2020 年 4 月 28 日
I have "Show line number" ticked in the MATLAB Editor/Debugger Display Preferences, but do not get the line numbers in the left column/margin of the Editor. Is there anything else to set to get the line numbers to display?
Some data: - MATLAB R2016a - OS: Windows 7 Professional, SP 1
Regards, Gerrit.

採用された回答

Kevin
Kevin 2016 年 4 月 29 日
That is a bit odd. I have R2106a installed on my Windows PC and I get line numbers in the Editor.
Close MATLAB and start MATLAB. This should not make a difference but it does not hurt to try.
  1 件のコメント
Gerrit
Gerrit 2016 年 5 月 3 日
Kevin, Yes, this does seem to work. The line numbers are there now.
I re-started the whole PC (for the weekend, not just for this line number issue), so I am not sure whether it was that or re-starting MATLAB that made the difference. Anyway, thanks for the advice.
Best regards, Gerrit.

サインインしてコメントする。

その他の回答 (1 件)

Eric
Eric 2016 年 6 月 29 日
We have seen the same issue and found that simply closing the editor and reopening the files does the trick as well.
  4 件のコメント
CalmLight
CalmLight 2018 年 2 月 8 日
Hello, this problem to me appeared today, having appeared previously over the years as another poster said. #1 One file, with line numbers, is not showing line numbers today - it was doing so yesterday. #2 A new "untitled" file does have line numbers working. See 2 screen-shot attachments. Now to close the editor that is not working as expected.
Boris Venet
Boris Venet 2020 年 4 月 28 日
I also use Matlab version R2016a, and I fairly frequently experience the problem of disappearing line numbers (and breakpoints) in the editor. When I have multiple files open in the editor, this may occur in one or several of the open files, but not necessarily all. Recently I discovered a work-around that may also be useful to others. If we go to the editor View Tab, and toggle between the Split Document -None and -Top/Bottom settings, this seems to restore the line numbers. This is somewhat more convenient than closing the editor completely and having to reopen all the files.
Possible root cause of the problem: it seems to me (not 100% sure of this) that splitting a document by grabbing the little separation bar (above the right-side scroll bar) tends to trigger the disappearing act. Using the View Tab buttons to do the splitting seems to be under better control.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeEntering Commands についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by