1

I am using Texstudio 2.12.6 on Mac.

When typing \cite{somewords, autocomplete shows a list of cite keys that start with 'somewords'. But I want it to show cite keys that contain 'somewords' inside, for example if cite key is [author][title][year], then 'somewords' could be author's name (at the beginning) or paper's title (inside).

How to achieve this?

Thanks.

2

1 Answer 1

3

This functionality has been added since TXS 2.12.12, called fuzzy autocomplete. Activate it as the default from the options:

Configure TeXstudio -> Completion -> Preferred commands list (set to fuzzy)

enter image description here

Result:

enter image description here

So if you type ton, entries like benton2012, thompson2017 will appear in the suggestion box. It will work with cross-references, commands etc. as well.


Notes from OP (@THN):

  1. We need to press "Enter" at \cite{bibid} to get in cite key autocomplete mode;

  2. Autocomplete is case-sensitive.

2
  • Thanks. For new users, note that: 1. We need to press "Enter" at \cite{bibid} to get in cite key autocomplete mode; 2. Autocomplete is case-sensitive. Hope it helps.
    – THN
    Dec 23, 2018 at 5:25
  • @THN thanks, those are good points. added it to the answer for posterity.
    – Troy
    Dec 23, 2018 at 5:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .