Use this command to restore the last action that you did an undo upon. The Redo command is disabled if you can't restore your last action, or if you have set the Undo steps Preferences setting to 0.

You can't alter the contents of an editor that is being run or debugged, nor marked as read-only.