CSS Refactorings

Anyone else here think some funky CSS refactorings would be a great addition to IDEA?


i.e. "Extract inline style" which would convert:

into: ]]></span><br/> #something <span ></span><br/> <span ><![CDATA[
]]>

And/or maybe:

- Extract CSS to embedded
- Extract CSS to <popup list of .css files in project"

6 comments
Comment actions Permalink

Oh crap - I can't drive forums can I :(( What skank ugly formatting :(

0
Comment actions Permalink

I would love these. I was disappointed that the full power of PSI was
not utilized when implementing HTML/CSS/JS support in 5.0.

Mark Derricutt wrote:

Anyone else here think some funky CSS refactorings would be a great addition to IDEA?


i.e. "Extract inline style" which would convert:

<head>
</head>
<body>
<div id="something" >
</div>
</body>

into:

<head>
<style>
#something {
width: 100%;
background-color: white
}
</style>
</head>
<body>
<div id="something">
</div>
</body>

And/or maybe:

- Extract CSS to embedded
- Extract CSS to <popup list of .css files in project"

0
Comment actions Permalink

Then you would not have been used IDEA5 yet.

Keith Lea wrote:

I would love these. I was disappointed that the full power of PSI was
not utilized when implementing HTML/CSS/JS support in 5.0.

Mark Derricutt wrote:

>> Anyone else here think some funky CSS refactorings would be a great
>> addition to IDEA?
>>
>>
>> i.e. "Extract inline style" which would convert:
>>
>> >> >> >>

>>
>> >> >> into: >> >> >> >> #something { >> width: 100%; >> background-color: white >> } >> >> >> >>
>>
>> >> >> And/or maybe: >> >> - Extract CSS to embedded >>]]> - Extract CSS to <popup list of .css files in project"


--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

I understand, time to market and short iterations is important. However,
there was some low-hanging fruit like CSS inspections, of which some
have been implemented in 5.1, that could be implemented quickly. These
refactorings look like larger projects and I'm excited for when they are
implemented.

Maxim Mossienko (JetBrains) wrote:

Then you would not have been used IDEA5 yet.

Keith Lea wrote:

>> I would love these. I was disappointed that the full power of PSI was
>> not utilized when implementing HTML/CSS/JS support in 5.0.
>>
>> Mark Derricutt wrote:
>>
>>> Anyone else here think some funky CSS refactorings would be a great
>>> addition to IDEA?
>>>
>>>
>>> i.e. "Extract inline style" which would convert:
>>>
>>> >>> >>> >>>

>>>
>>> >>> >>> into: >>> >>> >>> >>> #something { >>> width: 100%; >>> background-color: white >>> } >>> >>> >>> >>>
>>>
>>> >>> >>> And/or maybe: >>> >>> - Extract CSS to embedded >>>]]> - Extract CSS to <popup list of .css files in project"


0
Comment actions Permalink

Entered as http://www.jetbrains.net/jira/browse/IDEA-7503

Go and vote and add any other CSS refactoring ideas you might have...

0
Comment actions Permalink


Just having some Code Style + Reformat for CSS would be a big win.

I understand, time to market and short iterations is important.
However, there was some low-hanging fruit like CSS inspections, of
which some have been implemented in 5.1, that could be implemented
quickly. These refactorings look like larger projects and I'm excited
for when they are implemented.



0

Please sign in to leave a comment.