フィルターのクリア

Request about comment char % vs C++ //

129 ビュー (過去 30 日間)
Alessandro Livi
Alessandro Livi 2024 年 7 月 13 日 19:17
編集済み: Samantha 2024 年 7 月 16 日 19:13
I'm switching back and forth between C(++) for my Arduino Pico and MatLab App Designer
It would be really nice if when I type // to start a comment you could switch it to %
You have so much help in completion of typed stuff this shouldn't be hard for next release.
I'm getting the hang of MatLab but it can still be irritationg for "real" programmers. :-)
  11 件のコメント
Rik
Rik 2024 年 7 月 16 日 16:26
As long as it remains an optional autocorrect (just like the indent and inserting an end when writing for and if), what would be the problem?
dpb
dpb 2024 年 7 月 16 日 17:56
I suppose nothing, really, I guess I got too much into thinking of the language itself after my initial gut reaction that it could be similar to the selectable comment character when reading data files and the subsequent "toss it out for comment". Other than adding more to the editor that already seems to be slow....

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

回答 (1 件)

Samantha
Samantha 2024 年 7 月 16 日 19:07
編集済み: Samantha 2024 年 7 月 16 日 19:13
You could simply control F and replace all the // with % as I do, I attached an image below.
There really is no need to add this into the program as long as ctrl F exists. FYI matlab IS a real coding language and it's my code of choice for lots of data manipulation and programming. Please try to be mindful that some people use this daily in their work or schooling (I know I started off using it in college for lots of data aquisition stuff), or this might be someones first coding language and they get to deal with a pretentious "real" coder answering their questions.

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

タグ

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by