atom2yasnippets

1.0.1 • Public • Published

atom2yasnippets

Install

npm i -g atom2yasnippets

Usage

  1. find a folder to save your snippet, eg: ~/code/privateSnippet
  2. run command atom2yas -url rawCSONAtomSnippetURL, the command will convert the CSON snippet to yasnippet and save to ./dist folder.
  3. add ~/code/privateSnippet/dist to your private snippet folder and restart your Emacs.

eg for spacemacs user:

  "Set yasnippet folder to include customize snippet"
  (setq auto-completion-private-snippets-directory '(
                                                    "/Users/ydli/code/github/atom2yasnippets/dist"
                                                    ))

Example Atom Snippet URL

Language support

  • js-mode/js2-mode/react-mode
  • other launage? will add later, contribute welcome

Readme

Keywords

none

Package Sidebar

Install

npm i atom2yasnippets

Weekly Downloads

1

Version

1.0.1

License

ISC

Last publish

Collaborators

  • liyaodonglibin