Quick Code Cleanup
March 19th, 2009 by Anna KozlovaWith IntelliJ IDEA you can quickly clean up your legacy code. If a problem occurs multiple times in a file, you do not need to manually apply a quick-fix every time — use the Fix all intention to repair them all at once.
Tags: code analysis, quick fixes

March 19th, 2009 at 10:06 am
I don’t get a Replace with ‘for each’ option, only the Replace with while loop.
March 19th, 2009 at 11:06 am
Please ensure that you have ‘for’ loop replacable with ‘for each’ inspection enabled in File|Settings|Errors and language level is set higher than 1.4. Otherwise please file a JIRA issue at http://www.jetbrains.net/jira
Thank you