I am trying to get TexStudio to autocomplete "\phantom" -- right now the only option it displays is "\phantomsection" and even if I don't press enter and type out all of "\phantom" as soon as I type a "{" it autocompletes to "\phantomsection" which causes me to waste a lot of time deleting the unnecessary "section".
I can also type a space (to end auto-complete) then backspace and then add "{" but this is also inefficient, especially considering I have never used \phantomsection and probably will continue not to do so in the near future.
I want to know what package \phantom is in so I can add it to the TexStudio autocompletion (see here) -- I had also considered trying to remove \phantomsection from the autocomplete suggestion in TexStudio, but that seems to require mucking around too much in the source code, and since I am only a novice or at best intermediate in my LaTeX knowledge, I would prefer not doing that (so as to avoid breaking something and losing even more productive time fixing what I broke).
I am aware that this is a dumb "problem", but I would be very grateful for any suggestions nevertheless, since I lose a lot of time to this every time I want to use \phantom.
\phantomcomes from LaTeX2e (it's like\def, only that one comes from TeX). Maybe try adding%\newcommand{\phantom}{}somewhere in the preamble, just to trick TeXstudio that you defined it (don't know if this will work though and it's no solution, just a workaround). – Guilherme Zanotelli Dec 19 '16 at 09:08\phantomcommand is defined (and used) in the LaTeX kernel, but it's not documented in the manual. It comes directly from plain TeX. The fact that TeXStudio doesn't know it depends only on TeXStudio; update its list of known commands. On the other hand, you shouldn't be using\phantomvery much in a document: if you do, then it's probably high time for defining a personal macro. – egreg Dec 19 '16 at 09:25