Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you refactor JavaScript, HTML, CSS, etc? [closed]

I'm using Eclipse and the current solution (which I dislike) is to use "Search/Replace". This is an error prone solution.

Do you know any better approach to refactor JavaScript, HTML, CSS resources safely in big applications? Or do you use any other cool refactoring tool(s)?

like image 966
Alex Siman Avatar asked Sep 18 '09 18:09

Alex Siman


People also ask

How do you refactor Javascript?

In the editor, select a code fragment to convert into a function and press Ctrl+Alt+M or choose Refactor | Extract Method from the context menu. Alternatively, do one of the following: Press Ctrl+Alt+Shift+T and select Extract Method. From the main menu, select Refactor | Extract | Method.


1 Answers

IntelliJ seems to support Javacsript/HTML/CSS refactoring out of the box.

like image 147
ripper234 Avatar answered Oct 04 '22 15:10

ripper234