vala-language-server
vala-language-server copied to clipboard
Autocomplete shortcuts
It would be nice to have a feature in VLS similar to the one in IntelliJ. Simple shortcuts that could be used to autocomplete a longer command.
For example, main for the main() method, sout for stdout.printf(), or sirl for stdin.read_line(). Or even vmain for the main() method of type void.
I'm fairly sure that's called a Snippet. Yeah having snippets would be a nice addition to the language server itself.
We already have many snippets in VLS for common statements/expressions:
https://github.com/vala-lang/vala-language-server/blob/7577ffb269cd31da8815b7eadd72867965a2c742/src/codehelp/completionengine.vala#L376-L404