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 CJ-Clark · May 24, 2015 at 02:39 PM · buggenerationformatting

MonoDevelop seems to randomly insert code

I recently downloaded Unity 5 after running on Unity 4 since it's release and am running into an infuriating bug/feature with MonoDevelop 4.0.1. What seems to be happening is that whenever I Alt+Tab back to MonoDevelop from Unity and do some operation, perhaps copy pasting a variable, or editing some code or double clicking something to highlight it MonoDevelop appears to copy a couple lines of code and paste them on the screen, usually just above where I'm editing. I'm unable to fully track down what is making it happen, but copy/paste has seemed to repro it somewhat reliably. I assume it's a feature of some sort that can be turned off. Maybe it's a visualization and it's not actually inserting code?

Has anyone ran into this and may know what's going on? I found a couple threads that seemed to mention it, but their solutions didn't solve it. They mentioned setting the Code Formatting option for C# to Microsoft Visual Studio, but the problem still exists.

Thanks in advance!

EDIT: I have discovered more about the code insertion. Sometimes I have noticed that when saving the code offsets itself visually onscreen by a few lines. I'm uncertain why this is happening, but it's purely a visual thing. What appears to be happening when I see this random code insertion issue is that it's also a purely visual issue. No code is actually being added, but it's only offsetting the text for a few lines (2-3) instead of the entire screen.

Still quite annoying and it makes the new MonoDevelop a pain to work with. Any insight is appreciated!

Comment
Add comment · Show 6
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 Bunny83 · May 25, 2015 at 02:15 AM 0
Share

Do you use "#region"s or have you folded code sections (comment blocks, method body, class body, #region) somewhere in your code?

avatar image HTwist · May 25, 2015 at 02:16 AM 0
Share

I also encountered some issues with $$anonymous$$onoDevelop on $$anonymous$$ac. I couldn't find the cause of it but sometime copy/paste insert random text ins$$anonymous$$d of the text copied and select-all (cmd a) stop working as well.

avatar image Bunny83 · May 25, 2015 at 02:37 AM 0
Share

Well, i'm on windows (like most Unity users ^^). Recently i stopped using $$anonymous$$onoDevelop for several reasons. It's loading time is currently at it's peak. If you switch between projects it shows an error that it can't open the old solution (the error is actually displayed under the splash screen). Sometimes if you open $$anonymous$$D for the first time it doesn't open the file you double clicked. It's in general quite unstable (either it crashes completely or some modules crash silently). Code folding is quite useless since it automatically unfolds it (if you just think about the hidden code...). And many other things... For the time being i'm using Visual Studio Express. I only use $$anonymous$$D when i have to debug something (which usually isn't the case ^^).

avatar image CJ-Clark · May 25, 2015 at 05:36 AM 0
Share

I'm not using any regions. Co$$anonymous$$g from a C++ background I'm not overly fond of them. :P

I've considered using Visual Studio, but I'm trying to stick with $$anonymous$$D as it's necessary for debugging, and I tend to be a debug heavy developer.

avatar image sradforth · Jul 12, 2015 at 10:30 PM 0
Share

I've been having this too. I have bound Ctrl C/Ctrl V to copy/paste respectively on the mac. Although I haven't figured out when this happens I too sometimes get the contents in the copy memory being randomly inserted into my c# code. It's really frustrating because on one occasion it added a very difficult to find bug. (It copied my line counter++; at the end of an if statement!) $$anonymous$$y current thinking is sometimes the displayed cursor is not where the pasting occurs, or put another way... it feels like there is an edit cursor and a paste location cursor. Usually they are the same location but sometimes it gets confused and pastes in a different location to the edit cursor. I've normally only seen this when using the mouse + scroll bars on the right or when pressing Ctrl+F to find some text to later paste after.

Show more comments

0 Replies

· Add your reply
  • Sort: 

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

Date formatting Unity 5.4+ vs 5.3 1 Answer

Problems Generate a Chunk blocks (Space Game Infinity) 0 Answers

Problem with floor generator. 2 Answers

How can I generate a up facing quad mesh with variable resolution? 0 Answers

Raycasting plane mesh from the side 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