Tired of manually splitting your HTML attributes (or / / directives & props) up onto multiple lines?
You can now do it instantly with this extension:
Theme: Make Apps Theme
Created by Danny, from Make Apps with Danny (YouTube Channel):
- Support
- Features
- Usage
- Extension Settings
- Don't Forget...
- Known Issues
- Change Log
- My Other VSCode Extensions
Find this extension useful? Please support it by leaving a review:
The extension works on opening tags:
Theme: Make Apps Theme
As well as self-closing tags:
Theme: Make Apps Theme
And even works with multiple selections:
Theme: Make Apps Theme
You can choose whether to place your closing bracket (>
or />
) on a new line or not:
Theme: Make Apps Theme
You can set the sort order for your attributes. For example, as a Vue.js developer, you can make sure your important Vue directives & handlers come first:
Theme: Make Apps Theme
If you trigger the extension on an opening (or self-closing) tag that's already split, it will unsplit it back onto a single line:
Theme: Make Apps Theme
Just select your opening (or self-closing) tag - from the opening angle bracket (<
) up to the closing angle bracket (>
) and either:
- Open Command Pallette (
CMD/CTRL + Shift + P
) and chooseSplit HTML Attributes
- Or use the keyboard shortcut (which defaults to
Ctrl + Alt + Shift + A
)
You can change the keyboard shorcut. This is the default:
{
"command": "extension.splitHTMLAttributes",
"key": "ctrl+alt+shift+a"
}
If you find this extension useful, please support it by leaving a review:
No known issues yet.