You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For most commands that accept keyvals, it is valid TeX syntax to place the keyval entries on a new line after the command. For example, one might write the keyval entries for \tcbset of tcolorbox like
\tcbset{
key1=value1,
key2=value2,
}
or
\tcbset
{
key1=value1,
key2=value2,
}
With these or any other code formats, TXS should be able to autocomplete keyvals from an empty string.
Actual behavior
TXS can autocomplete keyval entries from the empty string, but this fails if the cursor is on line different from the command. For example, placing the cursor on the line after \tcbset and hitting Ctrl+Space does not bring up the autocompleter:
\tcbset{
}
The completer has no problems completing a keyval that is already partially typed.
How to reproduce
Place your cursor before the comments and hit Ctrl+Space.
\documentclass{article}
\usepackage{tcolorbox}
\begin{document}
\tcbset{ % works with cursor on this line% does not work with cursor on this line
}
\tcbset
{ % does not work with cursor on this line% does not work with cursor on this line
}
\end{document}
The text was updated successfully, but these errors were encountered:
Environment
Expected behavior
For most commands that accept keyvals, it is valid TeX syntax to place the keyval entries on a new line after the command. For example, one might write the keyval entries for
\tcbset
of tcolorbox like\tcbset{ key1=value1, key2=value2, }
or
\tcbset { key1=value1, key2=value2, }
With these or any other code formats, TXS should be able to autocomplete keyvals from an empty string.
Actual behavior
TXS can autocomplete keyval entries from the empty string, but this fails if the cursor is on line different from the command. For example, placing the cursor on the line after
\tcbset
and hitting Ctrl+Space does not bring up the autocompleter:\tcbset{ }
The completer has no problems completing a keyval that is already partially typed.
How to reproduce
Place your cursor before the comments and hit Ctrl+Space.
The text was updated successfully, but these errors were encountered: