0

In Unity Monodevelop C#, how do I add a "comment" line top & bottom, so that it auto-generates as part of the XML documentation auto-completion? Currently, when /// is pressed above the class/method/etc, it auto-generates this:

    /// <summary>
    /// 
    /// </summary>
    public class MyClass : MonoBehaviour

I would like to add surrounding comment lines, top & bottom like this to the auto-completion:

    // ----------------------------------------------- 
    /// <summary>
    /// 
    /// </summary>
    // ----------------------------------------------- 
    public class MyClass : MonoBehaviour

and

    // -----------------------------------------------
    /// <summary>
    /// Gets the thing.
    /// </summary>
    /// <returns>The thing.</returns>
    // -----------------------------------------------
public int GetThing() {
2
  • Use the Unity3d tag for the game engine. Unity refers to Unity Application Block. Commented Jan 10, 2016 at 12:26
  • I think your answer lies into the code snippet tool of monodevelop. Check here : addcomponent.com/create-use-code-snippets . You need to find and edit the snippet that has /// as a shortcut. (I don't use monodevelop so can't test it) Commented Jan 11, 2016 at 4:13

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.