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
7
Question by Lyje · Nov 13, 2013 at 01:09 AM · bugmonodevelopunity 4.3

Monodevelop 4.0.1 (Unity 4.3) code folding bug?

Just updated to Unity 4.3, which comes with MD 4.0.1. Every time I save (menu or ctrl+s) in MD, the code folding in MD breaks. In some cases it just thinks everything is one big block, in others it thinks everything apart from /// lines are not foldable. Anyone else getting this?

Comment
Add comment · Show 4
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 Devtactics · Nov 13, 2013 at 01:51 AM 0
Share

Yes, the moment I save a file all of the code expands and the code folding buttons disappear until any change is made to the file. Region folding is unaffected.

avatar image AndyMartin458 · Nov 13, 2013 at 01:57 AM 0
Share

They did some modifications to how this works. $$anonymous$$aybe they introduced a new bug. "$$anonymous$$onoDevelop: Don't flush folding and undo data on document save."

avatar image PuneetK · Nov 13, 2013 at 09:45 PM 0
Share

Yeah this is pretty annoying!!

avatar image liszto · Nov 14, 2013 at 06:56 AM 0
Share

Same problem here. And many others. I will do a forum topic today to resume them all. Then I will post the link here. I'm really not convinced that post $$anonymous$$ono problem here will give you a solution ;D

8 Replies

· Add your reply
  • Sort: 
avatar image
4
Best Answer

Answer by Lyje · Nov 16, 2013 at 09:29 PM

A temporary workaround: having saved a file, switch to another open tab in MonoDevelop, switch back to the tab of the file you just saved, wait a second and it should recalculate all the folding buttons.

Comment
Add comment · Show 1 · 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 GeorgeRigato · Nov 20, 2013 at 09:33 PM 0
Share

In the other hand, if I open my scripts trough mono solution sidebar, I can't click on other tabs to switch viewing of previous opened scripts. Anyone got that same problem?

avatar image
2

Answer by Vectorizing · Nov 20, 2013 at 11:28 PM

Another thing I noticed is every time I save the cursor jumps to line 1. This could get annoying for someone who is thousands of lines in code.

Comment
Add comment · Show 1 · 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 Excrubulent · Feb 13, 2014 at 01:33 PM 1
Share

The problem of the cursor jumping to line 1 occurs when you have multiple instances of the same file open. Close the duplicates, and that should stop happening.

avatar image
1

Answer by RMGK · Nov 20, 2013 at 10:00 PM

So I have reverted to using the old mono develop. Just do a duel install of Unity (Install Unity 4.2, rename its folder to something like "Unity 4.2", then install Unity 4.3) and then set your script editor in the Unity preferences window to the old mono. Life is a lot happier now :)

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
avatar image
1

Answer by rkstormer · Nov 26, 2013 at 02:08 AM

I simply disabled code folding since I don't really care about it that much. It solved the problem of the cursor jumping to line 1 also.

In Mono Develop, go to the "Tools" menu, select "Options...", find the "text editor" section, select "general", then uncheck all three of the code folding options.

Comment
Add comment · Show 3 · 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 Excrubulent · Feb 13, 2014 at 01:34 PM 0
Share

The problem of the cursor jumping to line 1 occurs when you have multiple instances of the same file open. Close the duplicates, and that should stop happening.

avatar image Khalanar_Dev · Feb 27, 2014 at 09:14 AM 0
Share

Dude I have been working so long without folding cause I did not find this option. THAN$$anonymous$$ YOU!

avatar image CinnoMan · Mar 04, 2014 at 09:27 PM 1
Share

this code unfolding each time I save is seriously annoying, hope they fix that soon...

avatar image
1

Answer by dsinghIITp · Mar 16, 2014 at 06:45 AM

If you do need code-folding, I would recommend using

 #region regionname //(or simply give function name)
 void function(){
 ...
 }
 #endregion

This solves the problem of unfolding while saving.

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
  • 1
  • 2
  • ›

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

32 People are following this question.

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

Related Questions

Why is Unity 4.3 so unstable? 0 Answers

Monodevelop not opening in Unity 4.3 16 Answers

How do I fix the duplicate files problem in MonoDevelop? 1 Answer

Why do placing a preprocessor directive inside another causes my script to lose proper indentation? 1 Answer

How to get the version of monodevelop from unity4.2.2 on unity 4.3 2 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