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!
I tried to edit the custom.kb.xml by adding a binding to it. I think I am on the right track, but don't know the correct code to do what I am doing..
Anyone help is appreciated :)
After Several Days of digging, I've yet to find anything helpful on this topic.
If anyone could help me with this, I'd really appreciate it!
Answer by Cepheid · Feb 01, 2016 at 04:23 PM
@DLively
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. :)
I don't see the option for the use of control+D, however [d-tab-tab] works fine :) Thank you !
Your answer
Follow this Question
Related Questions
Why Does Unity & Mono Hate Console Output ? 1 Answer
Collecting puzzle pieces in my platformer game 0 Answers
Scriptable object corruption 4 Answers
C# character movement 0 Answers