Transform html to pug inside your Visual Studio Code, forget about using an external page anymore.
- Format selection.
- Multiple selections support.
- Keyboard shortcut: Ctrl + Alt + p / ⌘ Command + Alt + p
Install this extension from the VSCode Marketplace
- Select the html.
- Hit ⌘ Command + ⇧ Shift + p / Ctrl + ⇧ Shift + p
- Run
html2pug: Transform
or Ctrl + Alt + p / ⌘ Command + Alt + p .
Use the following to embed a shortcut in keybindings.json. Replace with your preferred key bindings.
{
"key": "ctrl+alt+p",
"command": "extension.transformHtmlToPug",
}
You can customize your shortcuts too under: File > Preferences > Keyboard Shortcuts. (Code > Preferences > Keyboard Shortcuts on macOS) Check key bindings docs.
- html2jade - html to pug engine
Feel free to submit pull request or suggestions here.
- Daniel Balastegui - Initial work - dbalas
We use SemVer for versioning. For the versions available, see the tags on this repository.