How to disable "Cannot enable breakpoint(s) because of syntax error"

18 Ansichten (letzte 30 Tage)
dbdq
dbdq am 19 Sep. 2012
How can I let MATLAB not complain about syntax error while saving a file? This is extremely annoying and counterproductive. It can complain on run-time, but I do not see the benefit of complaining while saving a file.
For example, I was writing a code of if-statement and saved the file before typing "end", as I always save frequently to avoid losing the code. MATLAB immediately moved my cursor to a random line (beginning of some for loop way above) which it thinks it was the cause of the problem. This is obviously annoying as I need to locate again the line that I was editing. I do not see any good reason to check the syntax error while saving the file. It is also inconsistent that this problem happens when ONLY when there's a breakpoint.
This is a really counterproductive and intrusive "feature" of MATLAB. If there's no option disable it, please remove this feature or give it at least an option to disable in the next release. Thanks.
  1 Kommentar
Jan
Jan am 19 Sep. 2012
A Ctrl^Z (undo) and Ctrl^U (redo) moves the cursor to the last edited line.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Files and Folders finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by