Skip to main content

Questions tagged [autocomplete]

About using and customizing the front-end's auto-completion feature

Filter by
Sorted by
Tagged with
70 votes
3 answers
3k views

Is it possible to improve Mathematica's auto-completion feature?

In this answer Brett Champion describes how one can intercept and modify the suggestions used for auto-completion. Question: Is it possible to modify the suggestion for the automatic auto-completion ...
halirutan's user avatar
  • 113k
53 votes
3 answers
2k views

Argument completions for user-defined functions

Mathematica 10 has introduced file name completion for the arguments of certain built-in functions, such as Import, SetDirectory,...
Szabolcs's user avatar
  • 235k
29 votes
1 answer
847 views

Prompt a set of possible options

Recent versions of Mathematica dynamically prompt a list of possible options. For example, when typing Plot[x, {x,0,1}, PlotStyle-> After typing the arrow, ...
Yi Wang's user avatar
  • 7,357
26 votes
2 answers
1k views

Template completion

In version 8, if one evaluates test::usage="test[x,y]"; then types test, then shift-cmd-k (or shift-ctrl-k), a template ...
acl's user avatar
  • 19.8k
26 votes
2 answers
426 views

How do I add the infobutton in autocomplete that links to the documentation page for package functions?

When typing the name of a built-in function like Integrate, the button (ℹ︎) appears next to that name in the autocomplete: But I don't get that (ℹ︎) button for my ...
QuantumDot's user avatar
  • 19.7k
25 votes
1 answer
2k views

Segmentation fault on auto-complete

My front-end freezes as soon as I type more than two letters in a notebook. I think the error occurs, when the auto-complete feature kicks in. If Mathematica was started from a terminal, the following ...
murphy's user avatar
  • 1,249
20 votes
4 answers
1k views

Autocomplete InputField

Is there a way to define a InputField that displays a list of options as you type? More specifically I'm looking for an ...
William's user avatar
  • 7,625
19 votes
1 answer
571 views

Sub-packages and auto-completion

Cross-posted on Wolfram Community I have a Mathematica application that consists of two sub-packages, corresponding to the contexts foo` (...
Szabolcs's user avatar
  • 235k
19 votes
0 answers
267 views

New Needs alias - How to make autocomplete works

Mathematica 13 has a cool new feature for Needs. Now it's possible to use alias: Here is a simple doc example: The problem is, the autocomplete do not work for ...
Murta's user avatar
  • 26.3k
16 votes
2 answers
1k views

Command Completion

Note: As of version 9, this functionality is available and works out of the box. I've a few questions about Command Completion in Mathematica. I recently discovered this feature, and it's really ...
Tianxiang Xiong's user avatar
15 votes
2 answers
443 views

Auto-completion doesn't work as my expectation in version 9.0

When I input the following line in version 8, and press Ctrl+K after Re, I can get a drop-down auto-completion list including ...
Silvia's user avatar
  • 27.6k
13 votes
3 answers
865 views

How to make the suggestion box appear?

When you type a function in Matlab, quickly a suggestion box comes up showing functions similar to the one you're typing. I thought that Mathematica didn't have this but one day, I typed half of a ...
Red Banana's user avatar
  • 5,401
13 votes
2 answers
1k views

Mathematica notebook autocompletion completely disappears

Just as what is described in the title, the notebook behaves as if it were originally designed to not have the autocompletion functionality at all. Neither Ctrl+K nor F2 works. Furthermore, ...
Αλέξανδρος Ζεγγ's user avatar
13 votes
1 answer
269 views

Autocomplete in Mathematica 13

Bug introduced in 13.0.0 If I type f[x_Inte and hit Tab to autocomplete, MMA correctly autocompletes this into f[x_Integer. But ...
AccidentalFourierTransform's user avatar
12 votes
2 answers
646 views

How can I overload autocompletion to work with full contexts?

I would like for the autocomplete feature to search through contexts, for example if I have a symbol named A`B`C`MyFunction, when I type A` and press "cmd + shift + k" it will complete it. Edit To ...
M.R.'s user avatar
  • 31.6k
12 votes
0 answers
233 views

Autocomplete of non-global functions

In Mathematica 9 and 10 they added autocompletion. Out of the box this works great, but when I set the CellContext to "Notebook" ...
Anders's user avatar
  • 121
11 votes
1 answer
226 views

Functions returns Command Completion Output

Is there a function that returns the output as if you invoked Command Completion. To help clarify I am looking for a function that returns the Cell Data as if you invoked ...
William's user avatar
  • 7,625
11 votes
1 answer
353 views

How to add symbols to autocompletion list

There are some built-in Mathematica symbols that I use quite frequently but are not included in the autocompletion list in the front end. Examples are Analytic and ...
QuantumDot's user avatar
  • 19.7k
11 votes
0 answers
318 views

Creating compiled search TRIE file for argument string completion

I'd like to generate a compiled search TRIE file (like those found in $InstallationDirectory\SystemFiles\FrontEnd\SystemResources\FunctionalFrequency\) to help ...
Rashid's user avatar
  • 1,533
11 votes
0 answers
117 views

How can autocomplete entries be added for DownValues and Properties?

I'd like to assign DownValues to a symbol like this x["firstvalue"] = 1; x["secondvalue"] = 2; And then have the ...
ArgentoSapiens's user avatar
10 votes
1 answer
206 views

User defined template completion with symbols instead of placeholder

In Mathematica 9, the following usage definition generates the corresponding template (obtained by ctrl+shift+K after typing out ...
QuantumDot's user avatar
  • 19.7k
10 votes
0 answers
157 views

Autocomplete is too greedy with the mouse

I have a frustrating user experience problem in Linux; a common occurrence when using the notebook might go like: I have, for some reason, used the mouse (e.g. to place the cursor) and then move the ...
user avatar
9 votes
1 answer
172 views

Is it possible to make v9 ignore case when completing names?

In v8, I could type, say, fulls or texf to get FullSimplify or ...
Andrew's user avatar
  • 2,513
9 votes
1 answer
302 views

Completion in terminal?

I know that it is possible to run Mathematica in Terminal. But I didn't find a way to get completion work in Terminal. I mean completion by ...
eccstartup's user avatar
9 votes
0 answers
188 views

Esc-esc for special characters and autocomplete in Mathematica 9 [duplicate]

I recently upgraded to Mathematica 9 and have noticed a slightly annoying behavior that I was looking to remedy. In the past I would type special characters, e.g. ...
Guillochon's user avatar
  • 6,137
7 votes
1 answer
229 views

Can I put Association brackets <| … |> in an autocompletion template?

I have a function f which takes as one of its arguments an Association object, and I would like to produce a nice usage message ...
Emilio Pisanty's user avatar
7 votes
1 answer
237 views

Remove variable from autocomplete - version 10 issue?

I've got a program that's fairly long. Occasionally I ClearAll some lists that I created. That works fine, but those lists continue to show up in the autocomplete. Is there anyway to remove them ...
Mitchell Kaplan's user avatar
7 votes
0 answers
99 views

Exclude functions from auto-completion

Is there a way to exclude a function from auto-completion? Suppose that you are developing a package, and in the next version a function will be deprecated. It is better not to auto-complete it so ...
Szabolcs's user avatar
  • 235k
7 votes
0 answers
90 views

Strange behavior of autocomplete for ColorData [closed]

I'm seeing very weird behavior when autocompleting: Not sure if this is a bug. Is it? (I have OSX v10.2)
M.R.'s user avatar
  • 31.6k
6 votes
2 answers
165 views

How to prevent front end from suggesting Symbol option names (when actually String), and from adding them to Global` context

Help! I am writing a package with a function which takes lots and lots of different options which are Strings. When used, the front end autocompletion is ...
QuantumDot's user avatar
  • 19.7k
6 votes
1 answer
134 views

Make Complete Selection to show more items

The Complete Selection function only shows 5 suggestions with others collapsed. Is there a way not to collapse other items when I press ctrl-k?
Gqqnbig's user avatar
  • 307
6 votes
1 answer
156 views

Prevent autocompletion for symbols in contexts other than "`Private`" [duplicate]

I've been working on a Mathematica package (call it QuantumDot) that has become huge. Right now, all the back-end helper functions are in context ...
QuantumDot's user avatar
  • 19.7k
6 votes
0 answers
156 views

A Curiosity: What is DispatchQ?

As shown below, my autofill in Mathematica showed an interesting function: DispatchQ. Yet, it does not appear in the Mathematica Documentation Center, a search for ...
Just Some Old Man's user avatar
6 votes
0 answers
423 views

Mathematica 11 introduced strange autocomplete bug

today i upgraded from MM 10.4.1 (which run without any problems) to MM 11. But for me, it introduced a strange autocomplete-bug. When i try to type in "Plot" i get a huge (>5seconds) lag when i come ...
Julien Kluge's user avatar
  • 5,345
6 votes
0 answers
123 views

Mathematica 9 Autocomplete Pop-up issue

I've just installed Mathematica 9.0.1 Student Edition on my Laptop and my Home PC. On my Laptop, it works just fine. But on my Home PC I get this weird issue of the pop-up command autocomplete window ...
khalys's user avatar
  • 61
5 votes
1 answer
491 views

Function parameters hint for user defined functions?

f1[a_, b_, c_] := Module[{}, Print[a]; ] Completion Ctrl-Shift-K doesn't have hint for function arguments. So I have to copy function arguments nearby: <...
AS3Boyan's user avatar
5 votes
0 answers
156 views

More frugal display of usage messages in auto-completion popup – possible? [duplicate]

Update: I think the more general question I should have asked is: How should I write usage messages to work well with auto-completion? Is there documentation on how to prepare a package for convenient ...
Szabolcs's user avatar
  • 235k
5 votes
1 answer
126 views

Boxes with autocompletion

Entities have this nice autocompletion of properties: How do I define autocompletion for my own boxes that behave the same way?
swish's user avatar
  • 7,921
4 votes
1 answer
304 views

Can tab just mean "insert tab character"?

Is there a way to set the tab key to simply insert the tab character in a notebook? I often find the sometimes mysterious "features" bound to that key detrimental.
Rico Picone's user avatar
4 votes
1 answer
499 views

Autocomplete in wolfram (the Wolfram Language kernel in a shell)

Is is possible to have an autocomplete feature in the CLI of Wolfram Language kernel? I use the Raspberry Pi edition.
Mateusz Piotrowski's user avatar
4 votes
1 answer
165 views

Autocomplete popup slow (>= v12.2)

On my Windows systems, the autocomplete popup takes extremely long to appear (1-2 secs). This makes typing in Mathematica very uncomfortable for me, as the interface effectively freezes for these 1-2 ...
tauAlphaC's user avatar
4 votes
1 answer
231 views

Some symbols do not auto-complete in version 10 and version 11

When I input Backsub in Mathematica 10.2 and press Ctrl+K after, I couldn't get Backsubstitution. My OS is Windows 8 32-bit. ...
matrix42's user avatar
  • 7,138
4 votes
1 answer
141 views

Autocomplete ordering

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 ...
AccidentalFourierTransform's user avatar
4 votes
1 answer
403 views

Autocomplete and Information icon missing [duplicate]

Mathematica Version 11.2 desktop / Windows 10 Pro 64-bit Autocomplete and Information icon no longer appear. Practicalities of Using the Wolfram Language Is there some setting someplace where I ...
John's user avatar
  • 455
4 votes
1 answer
339 views

Mathematica crashes during auto-complete on Mac OS X

Mathematica crashes when I type in a few characters. This has been addressed and solved before on the forum. The answer is that a very large file has been created, and once you delete it, the problem ...
Jim Napolitano's user avatar
4 votes
1 answer
367 views

Autocomplete short symbol names in non-global context

Is it possible in v9 to autocomplete the short symbol names when one is operating in a context other than Global`? I.e. after evaluating the following: ...
Mohammed AlQuraishi's user avatar
4 votes
0 answers
146 views

Mathematica 11.3 no longer uses CodeAssistHistory Information to Order Autocomplete Results?

In previous versions of Mathematica I'm reasonably sure that the auto suggestions that appear when you begin typing were ordered by the frequency when you would use them. (I.e. typing "In" would ...
1110101001's user avatar
  • 1,989
4 votes
0 answers
160 views

How to get rid of a built-in context from autocomplete?

I have noticed that when I type the name of built-in function Limit in Mathematica, the autocomplete suggests two variants at the top: the first one is the working ...
user372003's user avatar
4 votes
0 answers
298 views

Autocomplete not working with tab key in Mathematica 10.3 on Ubuntu

When I want to autocomplete a function I can't use Tab key to expand what I typed in. If I press Tab, it escapes the popup suggestion menu. Autocomplete only works if I press Enter. Furthermore, once ...
Gianluca Rigoletti's user avatar
3 votes
3 answers
904 views

Shortcut to open Input Assistant

tl;dr the answer is F2 How can I re-open the Input Assistant after I've mistakenly closed it? E.g. Write the command Plotand ...
Smejki's user avatar
  • 71