Bemmet plugin for WebStorm
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
resources/META-INF
src/info/bem/intellij/bemmet/plugin
README.md
bemmet-idea.iml
bemmet-idea.jar

README.md

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 install

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.