Search Docs
Right-click on the function in the database object tree and select Script -> View DDL. You can view and copy the DDL statement in the pop-up box.