functionSignatures.json for built-in functions
이전 댓글 표시
I would like to define code suggestions/completions for built-in Matlab functions. This document,
describes how to do so for user-defined function using a functionSignatures.json file. Applying this to builtins, however, would seem to require tampering with MathWorks-supplied files and folders. In particular, I would have to create a resource folders, or modify existing resource folders, in the MathWorks-controlled folders where the functions reside.
I would like to avoid this, if possible. Is there any way to make a functionSignatures.json apply to a function in an arbitrary location?
답변 (1개)
I don't believe it's possible to create a functionSignatures.json file that applies to a function in an arbitrary location. Suppose you created one that had tab completion for a function that's overloaded as a method by multiple classes. Would you want that functionSignatures.json file to apply to any of those overloaded methods that are not covered by a functionSignatures.json file in their class folder?
If there are specific MathWorks built-in functions or functions included as part of MATLAB that do not have suggestion/completion data, I recommend you contact Technical Support and ask them to file an enhancement request to the development team(s) that own the functions.
IIRC I think you were asking in a different thread about completion for the methods function before. That could get very complicated as methods can accept either a class name or a class instance and at least a few classes overload that method for the latter scenario.
which -all methods
댓글 수: 1
카테고리
도움말 센터 및 File Exchange에서 Software Development에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!