muzimuzhi · GitHub

Environment

  • TeXstudio: 4.9.7rc1
  • Qt: Using Qt Version 6.11.1, compiled with Qt 6.11.1 R
  • OS: macOS 15.7.9, Intel chip
  • TeX distribution: BasicTeX 2026

Expected behavior

For a key/option that accepts a list of predefined values specified in cwl file, after key=, typing in initial characters of value(s) didn't trigger the completer.

Actual behavior

If the = following key name was already there or just typed in manually, the completion for enum values is only triggered by Ctrl + Space (shortcut for "IdeFix -> Complete > Normal").

If the completion for key name plus = was finished by pressing Enter, the completion for enum values is auto-triggered.

How to reproduce

\documentclass{article}
\usepackage{fancyvrb}
% in fancyvrb.cwl
% frame=#none,leftline,topline,bottomline,lines,single
\fvset{}
\begin{document}
content
\end{document}

Move cursor in \fvset{},

  1. Type in frame=, then s, no completion.
  2. Type in frame=, move cursor elsewhere then back, then type in s, no completion.
  3. Type in frame=, hit Enter, then s, value completion shows.
  4. Type in frame, hit Enter, then s, value completion shows.

Read the original on github.com ↗