If the link is broken: the user can select code, use a shortcut and refactor that code out into a new method, such that a call to the method replaces the code.

Description

FDT should be able to do this: http://screenr.com/vjn
If the link is broken: the user can select code, use a shortcut and refactor that code out into a new method, such that a call to the method replaces the code.