- By snippet using LSP, I mean, language servers provide facility 'completion' so if user inputs code in form of EBNF, then a request will be made from client and a reply will be provided from server that will be converted into desired code. So, I am willing to work on this transaction, i.e., adding support for completion for code provided in form of EBNF.
- By custom snippet, i mean to add an option in IDE where user can set **snippet with custom keyboard shortcut so that for a particular plugin, it respond different code depending on the language used and file extension. A property will be required, to be added in plugins to convert these predefined snippet (simple command) into code depending on language.
For example, I set keyboard shortcut Ctrl + Shift + P for print statement in IDE and have installed following plugins.
1. On working on _javascript_ file if i press Ctrl + Shift + P , 'document.write()' will be written due to the property of Eclipse WWD, with cursor ends in between those parenthesis.
2. On working on C# file, on pressing that keyboard shortcut, 'Console.WriteLine()' will be written due to the property of Eclipse aCute, with cursor ends in between those parenthesis.
3. For Java file, It will be converted to "System.out.println()".
**snippet - Earlier, i meant to add user-defined snippet but now i mean to provide simple snippet which are present in every language like printing task, function, for, while, if and so on. For language like HTML and CSS, there is no snippet present for mentioned tasks, there it will not be needed to implement.
Sorry for previous unclear post. These two ideas are a bit irrelevant, with code snippet thing common.
Thanks