Specify type of variable to allow tab completion
조회 수: 24 (최근 30일)
이전 댓글 표시
Is there a way to indicate the type of a variable to the static analysis tool in Matlab to allow tab completion when coding?
This could be usefull when passing objects as an argument to a function.
댓글 수: 2
Walter Roberson
2019년 8월 5일
Would this be for the purpose of text to display in a pop-up hint? Or is the idea that the tab completion would examine all of the variables that are in scope and only list for completion those that have particular data types?
채택된 답변
추가 답변 (1개)
Chidvi Modala
2019년 8월 8일
You can refer to Custom Code Suggestions and Completions
댓글 수: 4
Ken Atwell
2019년 10월 28일
@Adam: Exactly what you describe was added in R2019b -- see function argument validataion. Tab completion will use this information to try to make more targetted suggestions and completion.
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!