Quick Code Cleanup

March 19th, 2009 by Anna Kozlova

With 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: ,

2 Responses to “Quick Code Cleanup”

  1. Brian Says:

    I don’t get a Replace with ‘for each’ option, only the Replace with while loop.

  2. Anna Kozlova Says:

    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

Leave a Reply