vala-language-server icon indicating copy to clipboard operation
vala-language-server copied to clipboard

Autocomplete shortcuts

Open pervoj opened this issue 4 years ago • 2 comments

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.

pervoj avatar Jul 09 '21 15:07 pervoj

I'm fairly sure that's called a Snippet. Yeah having snippets would be a nice addition to the language server itself.

gouthamkrishnakv avatar Nov 29 '22 14:11 gouthamkrishnakv

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

Prince781 avatar Nov 30 '22 15:11 Prince781