# WinEdt autocompletion

How to use autocomplete feature in WinEdt?

It's very hard to use \ref{} and similar functions without autocomplete. I tried Tab and Ctrl+Space but in vain.

• Just to clarify, do you mean autocompletion of \labels? – Torbjørn T. May 12 '13 at 15:33
• yes auto completion for labels and references. – Fadwa May 12 '13 at 15:35
• after you type the closing } in \ref{}, WinEdt should bring up a list of the labels present in the current document. No other keys are required, unless something's wrong with your configuration or document. – Nils L May 12 '13 at 15:49
• yes it was working like that, but now something wrong happened, i don't know what. – Fadwa May 12 '13 at 15:53
• You have probably modified something in WinEdt settings, otherwise it should work. Try to run Rebuild All from Options -> Maintenance menu to rebuild the settings. – karlkoeller May 12 '13 at 16:28

After you type the closing } in \ref{}, WinEdt should bring up a list of the labels present in the current document, or, more precisely, in the current main file. No other keys are required, unless something's wrong with your configuration or document.

Clicking on the Icon "Build Tree" should help. It is available by clicking the "Tree..."-Button in the tool bar.

• I think "tree" build the directory and its content, not to solve my auto-complete issue. – Fadwa May 15 '13 at 2:33
• It seems that you haven't solved yet. Just to know: when you look at the Tree, is your bibliography marked with a question mark? – karlkoeller May 15 '13 at 7:44
• no, it's normal – Fadwa May 15 '13 at 9:01

I've had this problem before myself. Two things can be done to remedy this issue.

1. Build the tree for the document, as suggested before.

(didn't work for your particular case)

2. Set the main file of your document.

If you are working in only one file, just set that one as main.

You can do this by going to Project -> Set Main File.

After that, autocompletion should work as before.

• This really needs to be said. Autocomplete, as far as i can see, is not meant to work for anything except the main file of a project. And it will not register any bib file you are using until you use build tree. – Colin McLarty Oct 4 '16 at 6:26