I'm using 12.0.0 for Microsoft Windows (64-bit)
, and the autocomplete feature is a bit of a mess. In previous versions I used to be able to type Ta
and hit the tab
key, and this was autocompleted into Table
, an extremely useful tool. But now the ordering of the autocomplete suggestions is rather bad, for the first suggestion is TableForm
instead of Table
, and I see myself going back to fix things all the time. Is there any way to set up a preferred set of commands for the autocomplete feature? If this could be done automatically (say, order by frequency of usage) that'd be great, but even a manual choice of priority would be better than the current ordering.
$\begingroup$
$\endgroup$
Add a comment
|
1 Answer
$\begingroup$
$\endgroup$
6
I've just tried your exact example on Win10-64 and MMA 12 and Ta
+ tab in fact autocompletes to Table
in my system. You may try deleting your autocompletion history.
You can find that here:
FileNameJoin[{
$UserBaseDirectory,
"SystemFiles\\FrontEnd\\SystemResources\\FunctionalFrequency\\AutocompletionHistory.m"}
]
-
1$\begingroup$ @AccidentalFourierTransform Yes, they should be! I fixed it; thank you for pointing that out. $\endgroup$– MarcoBCommented Dec 4, 2019 at 17:18
-
2$\begingroup$ An OS independent way to create the file name is to use:
FileNameJoin[{ $UserBaseDirectory, "SystemFiles", "FrontEnd", "SystemResources", "FunctionalFrequency", "AutocompletionHistory.m"} ]
$\endgroup$ Commented Dec 4, 2019 at 17:23 -
$\begingroup$ Thanks. Unfortunaltely, this didn't work. BTW, could you try with
Cl
? This used to autocomplete intoClear
, but now it becomesCloudDeploy
! (I've never used this function, not even sure what it does...) $\endgroup$ Commented Dec 4, 2019 at 17:24 -
$\begingroup$ @AccidentalFourierTransform
Cl
autocompletes toClearAll
on my system; that makes sense to me, since I useClearAll
much more often thanClear
. IndeedClearAll
appears in my AutocompletionHistory.m file associated with a higher value thanClear
. I take that value to indicate priority. $\endgroup$– MarcoBCommented Dec 4, 2019 at 17:41 -
$\begingroup$ @MarcoB any indication as to if you can deliberately mark one suggestion high than the others, in order to brute-force a solution to this? $\endgroup$ Commented Dec 5, 2019 at 5:17