Reputation: 2192
In older versions of MATLAB, one can configure tab completion by editing the TC.xml file located in matlabroot\toolbox\local. In MATLAB 2016 (both a and b), though, that file no longer exists.
How can I set up auto tab completion for my own function in MATLAB 2016 ?
Upvotes: 4
Views: 358
Reputation: 2192
As it turns out, MATLAB 2016 (both 2016a and 2016b) uses a functionSignatures.json
file to configure automatic tab completion. One can easily read the content of any such file you find within the $matlabroot\toolbox\
folder to understand how it works.
Here is a very simple example functionSignatures.json
file showing how to set up tab completion for a function named nd2finfo
:
{
"nd2finfo":
{
"inputs":
[
{"name":"nd2file", "kind":"required", "type":"filepath=*.nd2" }
]
}
}
This file should be saved within the same folder that has the function definition. While typing in the function input, upon pressing tab, I can see a list of files with the extension .nd2 popping up.
Upvotes: 4