There is an interesting command in the newer CSIDE versions.
“Add Documentation Comments”
This can be found in the menu “Source”

This works like the similar commands in java IDEs or in Visual Studio.
Imagine, you have a source code like this

and if you use this new command, you’ll see, your source code is amended with the documentation comments like this

This basic documentation comments are only a framework and they should be extended to declare the purpose of the function, the variables and the return values.