Skip to content

Generator for autocomplete code snippets in Sublime Text 3, Vim, and PhpStorm formats.

Notifications You must be signed in to change notification settings

mocon/codesnips

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Snippet Generator

This is a script to convert any component markup into autocomplete code snippets for Sublime Text 3, Vim (Ultisnips) & PhpStorm Live Templates.

Installation

$ npm install

Usage

To convert the components' JSON, stored in /gdsComponents.json, run:

$ node converter.js

Installing generated code snippets

Sublime Text 3

After running the converter, place all .sublime-snippet files from /output/gds-sublime into:

OS X: ~/Library/Application Support/Sublime Text 3/Packages/User/

Linux: TBD

Windows: TBD

In the future, the snippets will be compiled into a package for installation using Package Control.

Vim

After running the converter, place all .snippets files from /output/gds-vim into:

OS X: TBD

Linux: ~/.vim/UltiSnips/html.snippets

Windows: TBD

PhpStorm

After running the converter, place all .xml files from /output/gds-phpstorm into:

OS X: ~/Library/Preferences/<product name><version number>/templates

Linux: ~/.<product name><version number>/config/templates

Windows: <your home directory>\.<product name><version number>\config\templates

About

Generator for autocomplete code snippets in Sublime Text 3, Vim, and PhpStorm formats.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published