Reputation: 598
I'm working in PhpStorm 2016.3.2. In my HTML files sometimes found <style>
tags and minified CSS inside them.
Is it possible to make a shortcut to unminify code inside this tags?
For example, this code:
<style>.arrow{fill:none;stroke:#231f20;stroke-linecap:round;stroke-miterlimit:10;stroke-width:20px;}</style>
should looks like this:
<style>
.cls-1 {
fill: none;
stroke: #231f20;
stroke-linecap: round;
stroke-miterlimit: 10;
stroke-width: 20px;
}
</style>
Upvotes: 3
Views: 7839
Reputation: 290
To reformat code for a directory, follow these steps:
To reformat code for the current file, follow these steps:
In the editor of the currently opened file, press Ctrl+Shift+Alt+L.
In the Reformat File dialog, specify options for the reformatting and click Run.
Upvotes: 13