Specify type of variable to allow tab completion
24 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Adam Cooman
el 5 de Ag. de 2019
Respondida: Adam Cooman
el 30 de Oct. de 2019
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 comentarios
Walter Roberson
el 5 de Ag. de 2019
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?
Respuesta aceptada
Más respuestas (1)
Chidvi Modala
el 8 de Ag. de 2019
You can refer to Custom Code Suggestions and Completions
4 comentarios
Ken Atwell
el 28 de Oct. de 2019
@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.
Ver también
Categorías
Más información sobre Loops and Conditional Statements en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!