/bemmet-idea

Bemmet plugin for WebStorm

Primary LanguageJava

bemmet-idea

Bemmet plugin for Idea to expand bemmet abbreviation into BEMJSON.

Install

Install bemmet with npm

npm i -g bemmet

**You need to have Node.js instal

Download bemmet-idea.jar and install plugin (use "instal plugin from disk..." option)

  • Go to preferences, bemmet plugin page (Preferences -> Tools -> Bemmet plugin)
  • Set the path to the nodejs interpreter bin file.
    • On Mac/Unix should point to /usr/local/bin/node
  • Set the path to the bemmet source.
    • On Mac/Unix should point to /usr/local/lib/node_modules/bemmet
    • On Windows should point to C:\Users\<username>\AppData\Roaming\npm\bemmet\

Getting started

Select text, open "Refactor" menu and choose "text2bemjson" option.

Keyboard shortcut

Default shortcut cmd(ctrl) + shift + b. You can change shortcut in the Idea settings page.