Unlocking the Potential of Large Language Models for Code Editing