- Home /
MonoDevelop 2.8 Code Templates not working with comments-only snippets
Hello,
I just installed Unity 3.5, which comes with MonoDevelop 2.8. I have many snippets/code-templates that contain comments only (which I use as dividers), like:
// REFERENCES ////////////////////////////
Problem is, they don't work anymore, because MonoDevelop returns an error when you try to insert a code-template that contains only white-spaces or rows that start with "//". I find this very bad and quite stupid for a coding application. Anyone found a solution for this?
Thanks,
Daniele
Answer by Kencho · Apr 12, 2012 at 04:33 AM
The best workaround I found is like this:
<$tag$> /// ///Then start typing the comment and insert the template there:
// Start typing the line below and insert the template. /// [Insert template here]
Yes, the formatting is all messed up :/
Basically, what I did was removing the "//" (actually, "///") from the first line of the template.
The trick here is that you type manually "//" and then insert the template. For example, this is how my template looks like: http://pastebin.com/$$anonymous$$hmaun8e
Answer by Demigiant · Apr 12, 2012 at 09:27 AM
For now, the best solution I found was to ignore Unity's MonoDevelop version, and install the latest official one (2.8.8.4), where this error is solved.
Though, on Windows, a new bug makes it quite messy to use it with Unity, since each time you open a file via explorer (or double-click a C# file in Unity), a new instance of MonoDevelop is opened, instead than opening the file in the already opened instance :/
Your answer

Follow this Question
Related Questions
Underscore change for a space in monodevelop 6 Answers
How do I type in a URL without commenting out the rest of the line? 2 Answers
Can you make a shortcut key for templates(snippets) in Monodevelop? 0 Answers
Recreate existing function summary block comments 0 Answers
MonoDevelop Task List with Javascript (TODO, FIXME) 0 Answers