Wouldn't it be easier if just right click on SP and ask SSMS to create script for Alter or Create?
Not really, because you've missed a few steps...
- Expand Databases
- Expand the specific database you're interested in
- Expand Programmability
- Expand Stored Procedures
- Locate the stored procedure you're interested in.
Only now can you "just" right click the SP.
The above rigmarole is rarely easier than typing: sp_helptext procname and pressing Alt+X. (Hands don't even have to leave the keyboard.)
Sometimes I don't even need to type the proc name, Ctrl+V will suffice. 😉