nekop / yasnippet-java-mode

Java snippets for yasnippet
Apache License 2.0
49 stars 25 forks source link

Added yasnippet extension to all files, some fixes and two new snippets #5

Closed Sleft closed 12 years ago

Sleft commented 12 years ago

When YASnippet creates new snippets it adds the .yasnippet extension to the new file. This makes it easier to identify snippet files. To conform with this behavior I have renamed all the snippets.

I have also made minor formatting to many snippets such as removing the space before the opening parenthesis of a condition for a control structure (and the same for the directives describing the snippet). I realize this is a style preference.

I added two snippets. One for inserting toString definitions and one for declaring and instantiating objects.

nekop commented 12 years ago

Thanks Sleft, I've merged your commits except one thing.

I think that a space before open parenthesis is common in Java and I prefer this style, so keep it for now.