add tag
samcarter
I'm heavily using the TeXstudio autocomplete feature, but sometimes it is annoying if some obscure command will show up before the one I use all the time. How can I permanently remove a specific command from the suggestions?
Top Answer
samcarter
One needs to distinguish two cases depending where the suggestion comes from:

## 1. Automatically or user generated suggestion

First you should check if the macro is from an automatically generated or user generated list. To to this, go to your textstudio config folder. On linux or mac it is usually located at

```
~/.config/texstudio/completion
```
and search the files for the macro. If you find it, delete the line containing the macro and you're done.

## 2. Build in suggestion

If you don't find it in your config folder, it most likely comes from one of the build in lists. You can search though then in the TeXstudio github repository. E.g. I wanted to remove `\docsvlist`, so I used this search

https://github.com/texstudio-org/texstudio/search?q=%5Cdocsvlist&type=code

and found it in the `etoolbox.cwl` file. 

Now download the file, remove the offending line and place your modified copy in
```
~/.config/texstudio/completion/user
```
This will overwrite the build in version which is included in TeXstudio.

## Result

Voila, `\docsvlist` is no longer in the list of suggestions and my often used `documentclass` finally comes first:

![Screenshot 2021-08-13 at 15.49.42.png](/image?hash=8f645cfa57e25eee0e5633cc7fba696b1c3857b7a99d218b3e7d4b1a42c69d07)




This room is for discussion about this question.

Once logged in you can direct comments to any contributor here.

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.