• Did you try with the following menu

    "Script Stored Procedure as" --> "Alter To" --> "New Query Editor Window"