Skip to content

This IntelliJ plugin enables you to use your sublime snippets directly as IDE live templates.

License

Notifications You must be signed in to change notification settings

6uhrmittag/intellij-sublime-snippets-support

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

intellij-sublime-snippets-support

This plugin enables you to use your Sublime Text Snippets directly as IntelliJ Live Templates.

How to install and use:

In your IDE:

  • Open Settings > Plugins > Browse Plugins and then type Sublime Snippets Support in the search box. You should be able to find this plugin as you typing.
  • Install it and restart your IDE, then the snippets under your Sublime Text Packages folder will be ready to use.

You can config the directory containing your snippets in Settings > Editor > Live Templates > Sublime Snippets.

How it works:

When your IDE starts up, this plugin will scan the snippets directory, which if not specified, is your Sublime Text Packages folder. All the snippets found will be converted to live templates in the following manner:

  • tabTrigger will be used as template abbreviation. Snippets without a tabTrigger will be omitted.
  • scope will be mapped to the corresponding contexts supported by your IDE. Snippets without any supported scope will be omitted.
  • Fields and Mirrored Fields are supported.
  • Placeholders are supported, however, fields and mirrored fields inside placeholders are not supported.
  • Substitutions are not supported. They will be treated as Mirrored Fields instead.

Please be noted that:

While you can find the auto-generated live templates grouped as "SublimeSnippets" in Settings > Editor > Live Templates, it is recommended NOT to update them because they will be recreated every time you start your IDE. If you do wish to change them, edit the original sublime snippets instead.

If you would like to setup a development environment for this project:

About

This IntelliJ plugin enables you to use your sublime snippets directly as IDE live templates.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Kotlin 52.0%
  • Java 44.3%
  • ANTLR 3.7%