| Marketplace
Sign in
Visual Studio Code>Other>Mithril EmmetNew to Visual Studio Code? Get it now.

Mithril Emmet

FallenMax

|
161,452 installs
| (3) | Free
Support Emmet(zen-coding) syntax for Mithril
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Note

You DON'T need this extension to use Emmetin VS Code.

Emmet (for HTML, CSS, JSX) is a built-in feature of VS Code. This extension is created to extend its feature for hyperscript or Mithril.

Mithril Emmet support for VS Code

Add Emmet (zen-coding) support for Mithril inside vscode, can also be used to create hyperscript.

Screenshot

screenshot

Usage

Use VS Code Command: Expand Emmet to Mithril

Optionally, You can bind mithrilEmmet.expand to a shortcut via File -> Preferences -> Keyboard Shortcuts.

Example:

[
  {
    "key": "cmd+alt+e",
    "command": "mithrilEmmet.expand",
    "when": "editorFocus"
  },
  {
    "key": "ctrl+alt+e",
    "command": "mithrilEmmet.expand",
    "when": "editorFocus"
  }
]

Configuration

{
  "mithrilEmmet.vnodeFactoryFunctionName": "m", //  Specifies the name of vnode factory function. E.g. for mithril, use 'm'; for hyperscript, use 'h'.
  "mithrilEmmet.outputDefaultTagName": true //  If false, default tag name ('div')  will be obmitted, i.e. '.some-class' instead of 'div.some-class'
}

Known Issues

  • Some emmet snippets are not supported (e.g. !!! => <!DOCTYPE html>)

Release Notes

0.6.0

Support insert snippet

0.5.0

Now support custom function name (to support hyperscript, cyclejs, etc.)

0.4.0

Support expanding while cursor is inside a abbreviation

0.3.0

Remove tab stop placeholders from output

0.0.1

First release

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2019 Microsoft