HowTo Extract inline css / Extract function in JS

Hi,

can anyone help me to find the above mentioned refactoring functions in phpstorm 7.1?

If i select an inline css style (in a html or php file) there is no "Refactor -> Extract inline css in the right-click-menu. Same with Extract function for an inline function in a html file.

Thanks in advance.
Alex

2 comments
Comment actions Permalink

Hello!

'Extract function' in javascript is called 'Extract include file' (select the ,script> tag contents, Refactor/Extract/Extract Include File... - see attached screenshot)
Note that this refactoring is only enabled if the whole <script> content is selected (see http://youtrack.jetbrains.com/issue/WEB-9606 and related tickets)

'Extract inline CSS' is now an intention, available at Alt+Enter



Attachment(s):
extractInlineCSS.png
extractInclude.png
0
Comment actions Permalink

Thanks Elena! This helped a lot.

Could not find the intention-thing in the current documentation ...

0

Please sign in to leave a comment.