Help with Custom Mono Develop Macros

I’d like to be able to assign Debug.Log(“”); to a set of keys with monodevelop.

For example, If I was to press Ctrl+D, it would add Debug.Log(“”); to my cursor position.

Anyone have the solution? Google wasn’t much help for me… Or maybe I just wasn’t looking in the right places.

Thanks for your time!


In MonoDevelop you can make use of code templates. These allow you to type a specific word or shortened acronym for the line of code or even a class which you want to put in. Similar to typing CW for the Console.WriteLine() method in normal C# or typing for and then double tapping the tab button.

Go to Tools > Options > Code Templates in MonoDevelop to find them and add your own.

I hope this helps! If you need more help on how to use them let me know. :slight_smile: