How to implement a description for variables in the code?
2 ビュー (過去 30 日間)
Is there a possibility to add or write a sort of a description for the variables used in the code without using comments or writing their meaning in an adjacent txt file for instance?
I'm imagine it in my head as if it's possible to implement a description in matlab so that, for example, if I hover over a variable in the code a short description written by me appears.
John D'Errico 2022 年 9 月 9 日
編集済み: John D'Errico 2022 年 9 月 9 日
So you want a tooltip to appear, hovering over each variable or line of code, but have no explicitly written comments in the code? Sorry, but this is not something implemented in MATLAB.
Is it possible to do in some other language? Of course. Start writing, since you may nee to implement the entire programming language yourself. Or pick some language that I don't know of, which may already have this caapability. But MATLAB is not an option, at least not at this date, or even in the near future.
Of course, you could submit this as a feature request, but I doubt it will happen anytime soon, as this would be a massive change in how the code and editor works.