James-Yu / LaTeX-Workshop

Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.
MIT License
10.55k stars 522 forks source link

Automatic fill-in suggestions appear as actual text and need to delete in order to type attributes #4179

Closed dskinnion closed 6 months ago

dskinnion commented 6 months ago

Please fill the following fields with a star (*) and provide as much related information as possible.

Pre-checks*

Please change the following [ ] to [x] for confirmation.

  • [x] The feature request has not been suggested in this repository.

The Missed*

Is your feature request related to a problem? Please provide a clear and concise description of what the problem is.

  • When there are automatic fill-in suggestions, the suggestions appear as actual text in the editor. For example, for \uncover{text}, if we edit, we have to manually delete the text "overlay specification" as it is actual text in the editor, as opposed to just a visual hint.

The Solution*

Please provide a solution you would like to have.

  • Once we start typing, it should automatically know we are inputting text that is supposed to take its place. The fill-in suggestions should be visual hints, not actual text in our code. For example, in Gmail there is a "Subject" in the subject line, but it not actually text there. When you start typing in the subject line, the "Subject" disappears automatically.

Anything Else?

Add any other context about the feature request below.

  • Thanks!
jlelong commented 6 months ago

In \uncover<overlay specification>{text}, both text and overlay specification are placeholders (see https://code.visualstudio.com/docs/editor/userdefinedsnippets). Once, you have the first text, type TAB to jump to overlay specification, which will be replaced as soon as you start typing.