Quick Code Cleanup

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.

This entry was posted in Tips & Tricks and tagged . Bookmark the permalink.

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

Your email address will not be published. Required fields are marked *