Remove all lines using CFEclipse

Tags: CFEclipse
Word Count: 189
If you have ever downloaded a text file or source code and just had way to many blank lines in it what did you do? Did you go through and delete all of the lines by hand? After you got tired of doing that did you try a find and replace of "\r\n"? After all those things do not work are you ready for the easiest solution ever? Open up your file in CFEclipse (it may be an Eclipse feature) and hit ctrl+f to open the find & replace dialog box. In the find input enter \r\n. Wait you said that would not work? I did say that, and that is because your normal editor does not allow for regular expressions. Check Regular Expressions in the options and hit replace. That is all there is to it, I mean really is there anything this IDE does not do? The example below is an ext file that is pretty large, but a pretty easy task with CFEclipse.

Comments

#1 Posted By: Claude Posted On: 1/12/08 6:10 PM
Your technique will work for all text based documents.

But if you really want to minify your javascript, click Scripts -> Javascript -> Compact while the JS file is open.


Post Your Comment

Leave this field empty







Show Captcha

If you subscribe, any new posts to this thread will be sent to your email address.

Copyright © 2007 Dan Vega | BlogCFC was created by Raymond Camden. This blog is running version 5.8.001.