Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Demigiant · Feb 15, 2012 at 12:25 PM · monodevelopcomments

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

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
0

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]
Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Demigiant · Apr 12, 2012 at 09:25 AM 0
Share

Not sure I understood your solution :P

avatar image Kencho · Apr 12, 2012 at 03:19 PM 0
Share

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

avatar image
0

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 :/

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges