Skip to main content

Questions tagged [autocomplete]

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

Filter by
Sorted by
Tagged with
2 votes
1 answer
51 views

Bind a key to show autocompletion

I've searched for a feature which is usually available in most IDEs where you are able to de-activate autocomplete and by pressing a key, usually Tab, the autocompletion pops up and you can either ...
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 ...
0 votes
0 answers
62 views

Automatic evaluation of a function for variable values defined from different data tables in the attachments

I want to evaluate a function whose variable values are defined in different data files. I want to know that how can I write code such that when the function's evaluation is exhausted for one table, ...
2 votes
0 answers
35 views

Where are user-defined usage messages stored in the front-end for autocomplete stored -- and how can I clear them out?

I am writing some code which automatically sets the usage messages for a function, and I am having some trouble iterating on it, particularly in getting it to work correctly in the autocomplete. At ...
3 votes
1 answer
111 views

Autocomplete doesn't work when the CellContext is set to be Notebook (Mathematica 13.3)

I am using mathematica 13.3. When the CellContext option is "Global" the autocomplete works fine. I would like to have individual variable in each notebook, so I use the following command: <...
0 votes
1 answer
60 views

Is it possible to set autocompletion, when the variable name starts with $, ignore it?

I need to use variables like \$ + capital letters(\$A,\$B,...) frequently in a project, the default autocomplete always pops up automatically, in most cases, it's a distraction. Can we set Mathematica ...
2 votes
0 answers
37 views

Auto completion starting from anywhere in the name

Edit: After reading the last answer from the related question mentioned below I saw that it was all I needed. What I would like I would like to type Comp and automatically see auto complete ...
2 votes
0 answers
140 views

Can mathematica be configured to auto pair different parenthese?

In DrRacket, the editor can auto pair different parentheses, for example code like (let [(x 3 and whether press ) or ...
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 ...
3 votes
2 answers
316 views

How to create my own inline drop down autocompletion in a text cell?

Mathematica has a nice dropdown feature when typing along in an input cell. If I type "Pl" a dropdown appears with options on how I can complete the command. It's basically a shortcut. I can then ...
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 ...
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 ...
0 votes
1 answer
76 views

Nonlinear Model Fitting to Numerical Data with automatic elimination

I have an experimental data set {f,x,y,z} as {{300., 2., 4., 6.}, {500., 0., 4., 25.}, {6600., 1., 15., 9.}, {100., 5., 0., 2.}, {1100., 10., 8., 1.}, {1300., 7., 8., 18.}, {300., 23., 5., 0.}, {400....
0 votes
0 answers
124 views

How to use the autocomplete for built-in function's argument for a user defined symbol?

Suppose I have myFunction as follows: ClearAll[myFunction]; myFunction[unitName_,somethingElse_]:=...definition...; I want to ...
3 votes
0 answers
43 views

Missing Hover and Autocomplete INFO Buttons for Custom Paclet

I've built my own paclet application with documentation using Workbench 3 (Eclipse add-in 10.1.822) with MM 12.1 (there are currently issues with 12.2-3 and the only Workbench add-in update, which I'm ...
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 ...
2 votes
0 answers
64 views

Autocomplete file argument for custom function

When typing Import[" in a notebook Mathematica suggests to autocomplete the file path you want to enter or choose a file using the GUI. Is there a way to let a ...
0 votes
0 answers
71 views

Function template failed to use in Notebook context

For some reason, I need to set the Notebook context as the default context. And I follow the methods in https://reference.wolfram.com/language/ref/menuitem/MakeTemplate.html to define a function ...
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 ...
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?
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 ...
1 vote
0 answers
35 views

Creating a Package with autocomplete possibilities [duplicate]

I'm writing a package (nothing complicated) where I define a lookup function for a defined association. As an Example: ...
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 ...
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,...
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 ...
3 votes
0 answers
67 views

File selection dialog in autocomplete [duplicate]

How can I create the autocomplete for the function with opening file selection dialog? For example like a autocomplete of the SystemOpen UPD: the answer to the ...
0 votes
0 answers
490 views

How to automatically load the ToMatlab toolbox when opening the software? [duplicate]

I would like to convert the formula to Matlab, but each time I want to run the ToMatlab file, is there any way to automatically load the ToMatlab component when launching the software?
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 ...
1 vote
0 answers
72 views

Completion boxes are blacked out

I have a weird "bug" that seems to happen at random. In some files, even simple ones that evaluate fine at first, the auto-completion boxes get blacked out after a few evaluations. The lines of the ...
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` (...
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, ...
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 ...
3 votes
0 answers
112 views

Front end autocomplete popup becomes black

I have an annoying problem with Mathematica front end. Sometimes, the autocomplete popup becomes black and the content becomes unreadable as shown in the attached image. This can be fixed by ...
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 ...
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 ...
1 vote
0 answers
71 views

Why auto-completion menu selection gives error?

Is this supposed to happen? I used the auto-completion menu and selected a valid value it shows (first one from the menu), then Mathematica complained that the choice selected is not valid ! ...
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 ...
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 ...
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 ...
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 ...
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?
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. ...
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 ...
1 vote
0 answers
50 views

How do I activate the infobutton that links to the documentation page for package functions [duplicate]

When typing the name of a built-in function like Integrate, the button () appears next to that name in the autocomplete: But in my self-defined application,it doesn't works Also, the button is gray ...
1 vote
1 answer
140 views

How to use alphabetical autocomplete?

Mathematica maintains a file with the history of commands input by the user (under ...
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 ...
3 votes
0 answers
63 views

autocomplete menu missing other options due to white space. How does space affect autocompletion?

I do not know if this was mentioned before. And I do not know if this is by design or not. But I noticed when starting to insert an option, in the middle of other options, the pop-up menu that comes ...
2 votes
1 answer
44 views

Enable file completion by default?

File completions work for Import and Get but not with << syntax as you can see: Is there some way to enable this?
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.
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 ...