I have experience in programming Python in NetBeans and using the code hints with Ctrl+Space or Tab is a breeze. Here is my experience with using the code hints in TeXnicCenter:

When I type the following:


I will then get a popup that says:



At this point I eagerly press Ctrl+Space. But to my dismay, I get the following:



Any tips on how to use code hints / code completion in TeXnicCenter?

  • mods: I wanted to add the tag code-completion or code-hint. Kindly add it or a more appropriate one if you deem fit. Thanks! – Kit Aug 20 '10 at 13:15
  • Done. code-completion is appropriate, the more general auto-completion could be made an alias. – Stefan Kottwitz Aug 20 '10 at 13:20
  • @StefanKottwitz: I just tagged this question with code-completion, but I'm not sure if that's what you were intending for with your previous comment. Which one should be a tag synonym of the other one? – doncherry Oct 13 '11 at 13:34
  • @doncherry: a long time ago :-) yes, the tag got lost, perhaps I didn't save it. I think they mean both the same for us. One could be an alias for the other. auto-completion could also mean text completion, so it might be the more general tag and master and code-completion could point to it. Let the more commonly used one win. – Stefan Kottwitz Oct 13 '11 at 13:49
  • 1
    @StefanKottwitz: Why not start out orderly right from the beginning? I'll retag this question with auto-completion (which I was looking for a few times recently) and try to get myself a Synonymizer badge with code-completion, alright? – doncherry Oct 13 '11 at 13:53

Start typing only the name of the environment, e.g. docu, press the code-completion shortcut, and TexnicCenter will create it with \begin, and appropriate braces. I've been tripped off by this in the beginning as well, but apparently it's supposed to save more typing.


It's a feature. To save typing, TeXnicCenter additionally inserts \begin{ when environments are completed. This may be confusing if you don't know it. With this knowledge, it should be easy to use, as mindcorrosive said.

Though, you could change this behavior if you like. To do this, go to TeXnicCenter directory (C:\Program Files\TeXnicCenter for instance), change to the subdirectory Packages and open the file TeX.xml. It contains these lines:

    <lxEnvironment name="document"
        desc="Starts a new document"

If you change the expbeforeline to


then \begin{do would be expanded to



But the feature just to expand do to the complete environment would be replaced. I guess you would keep it the original way, but if you're used to the other kind of code-completion you could adjust TeXnicCenter's behavior like described.

Note, you could add further .xml files in that subfolder to extend the code-completion capabilities.

  • Didn't know that. Thanks for the addition. – Martin Tapankov Aug 20 '10 at 14:37

FYI, Tino Weinkauf regularly publishes news about TeXnicCenter 2 (currently alpha 3) developments at LaTeX Community. Maybe you could ask him about his plans for this feature and if there's any interesting news, add his answer back here.


FYI...the support team for TeXnic Center recently (9/16/2013) came out with a release (2.02) that fixes this issue among others. Now if they could just get the word completion to work for anything, and not just code, things would be perfect.


Altering the .xml also allows you to change the text which comes up. This is helpful if you include figures in a different way (such as with the pstool package).

In this case alter the xml exp after field to:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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