Recent Changes‎ > ‎

Java Extract String Quickfix

posted Aug 10, 2011, 6:47 PM by Tor Norbye
We've had the "Extract Android String" refactoring for a while, but to invoke it you would have to select the full String first, and then look in the refactoring menu. We now have a Java Quickfix implementation which means that if you press Ctrl-1 (or on Mac, Command-1) when the caret is inside a String, "Extract String" is offered with a preview showing its effect:

If you invoke this quickfix, you get the Extract String refactoring dialog where you can customize the name of the string, or even "Replace in all Java Files" which will find the same string in other files as well and apply the change there as well. (And by the way, we recently fixed a bug in this refactoring related to replace in all Java files.)
Comments