cyrusfirheir / twee3-language-tools

[ VSCode extension ] Syntax highlighting and programmatic language tools for Twee 3, and Twine 2 storyformats.
https://marketplace.visualstudio.com/items?itemName=cyrusfirheir.twee3-language-tools
MIT License
47 stars 16 forks source link

Using autocomplete to type the <<return>> macro #110

Closed Philip-Sutton closed 2 years ago

Philip-Sutton commented 2 years ago

If you type "r" in vscode with T3LT running, this triggers the opening of a list of autocomplete options. If you select :return then vscode autocompletes by inserting <<return >>

This autocomplete text has a space after the word 'return' and before the first closing angle bracket - which should not be there, though the macro still works when rendered into the output .html file.

cyrusfirheir commented 2 years ago

The return macro optionally allows custom text/images for the link, hence the blank space in the snippet.

https://www.motoslave.net/sugarcube/2/docs/#macros-macro-return