How to show Function declarations in IDE

I see many examples of code posted, and these include the function declarations like :

Function MyAdd(val1 as integer, val2 as integer) as integer
     ... code
     ... code
     ... code
End Function

but in the Xojo IDE, I only see the code in the function.

How do you copy the full function, with the declaration, to the clipboard ?

Select it in the side bar and use the context menu (right-click, control-click) and select Copy

Many Thanks Shao Sean !