Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kirillplatonov/vscode-erb-toggle

VSCode: Toggle command for ERB tags
https://github.com/kirillplatonov/vscode-erb-toggle

Last synced: 5 days ago
JSON representation

VSCode: Toggle command for ERB tags

Awesome Lists containing this project

README

        

# VSCode ERB Toggle

This extensions provides toggle command for ERB tags in VSCode.

Command:
```
erb-toggle.toggleTags
```

## Features

- Cycles through tags `<%= %>`, `<% %>` and `<%= %>`
- Multiline support
- Works in `erb`, `html.erb`, `js.erb`, `css.erb`, `scss.erb`

## Demo

![VSCode ERB Toggle](images/demo.gif?raw=true)

## Keyboard shortcuts

MacOS: `Command+Shift+.`

Windows & Linux: `Ctrl+Shift+.`

To customize keyboard shortcuts:

```
{
"command": "erb-toggle.toggleTags",
"key": "ctrl+shift+.",
"when": "editorTextFocus && editorLangId =~ /erb/"
},
```

## Credits

Inspired by [@vortizhe](https://github.com/vortizhe) plugin [vscode-ruby-erb](https://github.com/vortizhe/vscode-ruby-erb).

## License

This extension is [licensed under the MIT License](LICENSE.txt).