Is there any way to avoid unconscious adding alphabet to the code while working on it?

1 回表示 (過去 30 日間)
Zeynab Mousavikhamene
Zeynab Mousavikhamene 2019 年 10 月 11 日
コメント済み: Adam Danz 2019 年 10 月 12 日
It happened to me many times:
I am working on a long code and sometimes keyborad is touched by pen, hand or .. unconsciously typing some alphabtte even one letter to the code which sometimes is a headache to figure out it was only one extra e.g. ''i''.
Any way to avoid this?
  3 件のコメント
John D'Errico
John D'Errico 2019 年 10 月 12 日
編集済み: John D'Errico 2019 年 10 月 12 日
Be more careful?
How can a computer know that somehow one keystroke is something you really wanted to do, and another is a complete accident?
Personally, I'd like the editor to catch when I make any logical or mathematical error in my code. Hmm, better yet, it should know what I want to write, without my even typing a single keystroke. What I should have written, if I were a better programmer?
Why do I find these last ideas a bit chilling?
Yes, the editor is actually pretty smart. mlint catches some things. It can suggest if there are some problems in variable or function names. But best is just to be careful.

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

回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by