Collection of snippets for yasnippet
Go to file
Sunil 41030e2b01 Add snippets for bazel-mode (#255)
* bazel mode snippets for cc

* bazel mode snippets for java.

added bazel mode java snippets and added newline at eof

* bazel mode snippets for python

* bazel mode snippets for shell
2018-04-07 15:08:56 +01:00
snippets Add snippets for bazel-mode (#255) 2018-04-07 15:08:56 +01:00
.gitignore ignore compiled snippets 2014-10-03 11:24:04 -04:00
.nosearch Create .nosearch 2014-10-04 13:22:04 -04:00
LICENSE gpl v3 2017-08-11 20:29:58 +01:00
README.md gratipay dead 2018-03-01 11:18:27 +00:00
yasnippet-snippets.el Can we use JIT snippet loading? (#252) 2018-02-22 13:40:09 +01:00

README.md

Yasnippet official snippet collections

MELPA

Join the chat at https://gitter.im/AndreaCrotti/yasnippet-snippets

This repository contains the official collection of snippets for yasnippet.

How to install

From melpa

You can install this package from melpa, by first ensuring that you have the melpa source in your package-archives.

(require 'package)
(add-to-list 'package-archives
             '("melpa" . "http://melpa.milkbox.net/packages/") t)
(package-initialize)

Once that is done, then just refresh the packages and install it with.

  • M-x package-refresh-contents
  • M-x package-install yasnippet-snippets

Now all the snippets will load automatically, as soon as yasnippet loads.

Contributing

If you have any useful snippets for any language or framework, then please feel free to contribute, by opening a PR or an issue if you have any suggestions.

To study the current snippets, I suggest that you use M-x yas-describe-tables, which will show a table representation of all the snippets that are available in the current mode.

Guidelines

Snippets need to be generic enough to be useful for everyone, and not contain anything specific to your own system.

Various notes

HTML snippets

Until September 1st 2014 there were a lot of HTML snippets in the repository, which sometimes were useful, but I came to the conclusion that yasnippet was not the right tool for them, so they were removed in this pull request: https://github.com/AndreaCrotti/yasnippet-snippets/pull/49

To everyone writing a lot of HTML I suggest using emmet mode instead, which is a much more powerful mode for writing HTML tags.