ThFriedrich / lammps_vscode

VSCODE extension for language support of LAMMPS scripts
https://thfriedrich.github.io/lammps_vscode/
GNU General Public License v2.0
44 stars 14 forks source link

Provide Snippets #9

Closed ThFriedrich closed 4 years ago

ThFriedrich commented 4 years ago

Perhaps it would be useful to provide snippets for very common structures and commands.

ThFriedrich commented 4 years ago

I prepared a file to allow snippets and added a few examples here. This was all manual work so far, but maybe the generation of this could be automated. In particular, I find the suggestions for "styles" very helpful: Screenshot at 2020-04-17 13-31-38

Difficulties arise because it is not possible to distinguish optional arguments and then all the keyword/value-stuff could spoil the whole thing. @arn-all Whats your opinion on this?

arn-all commented 4 years ago

Hi, It seems very encouraging, though I don't understand what you mean by ;

Difficulties arise because it is not possible to distinguish optional arguments and then all the keyword/value-stuff could spoil the whole thing.

ThFriedrich commented 4 years ago

I removed most of the snippets in favour of a similarly working autocompletion behaviour using automatically generated SnippetStrings (issue #16)