1

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.

karlkoeller
  • 124,410
Fadwa
  • 571
  • 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
  • @karlkoeller: nothing changed. – Fadwa May 12 '13 at 16:38
  • Just another question. In the Tree, can you see the branch Bibliography with the indication of the number of bibitems? – karlkoeller Jul 02 '13 at 08:01
  • @JosephWright; Why would he? It doesn't answer the question. It simply states how it should work. The problem case here is that it doesn't anymore, which can be solved as I explained below. – Mythio Aug 16 '13 at 20:29
  • @Mythio There are cases in which your answer doesn't work... – karlkoeller Aug 17 '13 at 15:24
  • @Misaki Can you please tell us if you still have this problem? – karlkoeller Aug 17 '13 at 15:41
  • @karlkoeller; perhaps, but then the other "solution" definitely doesn't work either, so it makes little difference to my point.. – Mythio Aug 18 '13 at 13:05
  • @Mythio You are right about this. The other one is definitely not a solution. – karlkoeller Aug 18 '13 at 13:08

3 Answers3

2

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.

enter image description here

Nils L
  • 9,716
1

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

Michael
  • 11
1

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.

karlkoeller
  • 124,410
Mythio
  • 2,204
  • 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 04 '16 at 06:26