6
$\begingroup$

The Complete Selection function only shows 5 suggestions with others collapsed. enter image description here

Is there a way not to collapse other items when I press ctrl-k?

$\endgroup$
1
  • 3
    $\begingroup$ Does this work for you: SetOptions[$FrontEndSession, CodeAssistOptions -> {"MaxContextMatches" -> 15, "MaxGlobalMatches" -> 10}]? Default values are 5 for both suboptions. You can alternatively use $FrontEnd instead of $FrontEndSession. $\endgroup$
    – kglr
    Commented Jun 25, 2017 at 0:15

1 Answer 1

7
$\begingroup$

The number of items in the drop-down menu seems to be controlled by the suboption "MaxGlobalMatches" of the option CodeAssistOptions. The latter can be set at the EvaluationNotebook[], $FrontEndSession or $FrontEnd levels. The default value of the suboption is 5.

Options[$FrontEndSession, CodeAssistOptions]

Mathematica graphics

Mathematica graphics Mathematica graphics

You can change the value of this suboption to a higher value using SetOptions:

SetOptions[$FrontEndSession, CodeAssistOptions -> {"MaxGlobalMatches" -> 15}]

to get

Mathematica graphicsMathematica graphics

Mathematica graphics

Note: Couldn't figure out what the suboption "MaxContextMatches" does.

Update: For completeness, @andre's comment regarding "MaxContextMatches"

"MaxContextMatches" certainly refers to the matches that hit the symbols that the user most commonly uses (a new feature introduce in Mma 9). See the first 4 minutes of this video. At time=3m15, the talker use the expression "[symbols]... more frequently used in context than system symbols"

$\endgroup$
2
  • 2
    $\begingroup$ "MaxContextMatches" certainly refers to the matches thats hit the symbols that the user most commonly uses (a new feature introduce in Mma 9). See the first 4 minutes of this video. At time=3m15, the talker use the expression "[symbols]... more frequently used in context than system symbols" $\endgroup$
    – andre314
    Commented Jun 25, 2017 at 9:52
  • $\begingroup$ @andre, thank you. $\endgroup$
    – kglr
    Commented Jun 25, 2017 at 20:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.