Eclipse Tip: Shortcut to Quick Fix

Eclipse has quite a few Quick Fixes or Quick Assists available. What are these?

Well if you want to rename all instances of a variable in a file you can use a quick assist to do it. Just place the cursor at the variable and press Ctrl + 1 to see a list of Quick Assists available. Quick Fixes are similar but help resolve common errors.

I use the ‘rename in file’ quick assist all the time. But pressing Ctrl + 1 and then selecting rename in file is not very intuitive. Since Eclipse 3.2 there is an easier way of doing this. You can assign keyboard shortcuts to these Quick Fixes. I have assigned Ctrl + Alt + R to rename in file. This is a lot easier.

Vasanth Dharmaraj is a Java Architect currently working for Western Union living in the Bay Area. He is interested in programming, gadgets, formula one... You can follow him on Twitter.

Posted in Eclipse, Java, Software
2 comments on “Eclipse Tip: Shortcut to Quick Fix
  1. Chris Fong says:

    Doesn’t the built in shortcut ALT-SHIFT-R do basically the same thing?

  2. Vasanth says:

    Hmmm… When I checked it was not linked to any shortcut. Anyway I keep messing with the settings so it could have been.

Ads By Google