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 /
This post has been wikified, any user with enough reputation can edit it.
avatar image
0
Question by Stabbarey · Sep 03, 2014 at 09:52 PM ·

Csharp autocompletion is driving me crazy

I'm NOT talking about autocompletion for text, I'm talking about autocompletion for lines, it's hard to explain, try to understand what i'm saying. ;)

Hello! I've been looking through tutorials on YouTube in how to make games in Unity and so on... I've always been using JavaScript for reasons.

Now i've started using Csharp and you know how if you write an if statement for example.

if(blabla > blabla) { //HERE THE TEXT STARTS automatically when you press enter after you've wrote the if statement, right? It automatically helps you "tab" to make it look better. Hope you understand. BUT }

This is how my MonoDevelop works in JavaScript, now I'll try to explain how it looks like in Csharp.

//We write a function public class Class : MonoBehaviour {

 void Function() {
     //THis works fine. BUT! If i write an if-statement inside this little thing,it will start
          if(blabla > blabla) {
                      //It will start out somewhere around here???????????????+
     }
 }

}

Now if i would continue doing if statements inside this ifstatement for example. The if statement would be forwarded even more.

I know it can be tough to understand, but i hope someone understands it, it's driving me crazy, When i correct it. like:

void blabla() { if(blabla) {

 }
 
 if(blabla) {

 }

}

It works for the moment, but if i want to change some code in the function, it gets forwarded again.

I hope someone understand this nonsense since i'm not really good at explaining but since most people use Csharp, i might aswell start using it, but yeah it's driving me crazy. What's the problem? Thanks in advance

Comment
Add comment · Show 3
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 rutter · Sep 03, 2014 at 09:53 PM 0
Share

$$anonymous$$onoDevelop started doing that a version or two back. It used to be much better at that. I think of it as a bug.

(Sorry.)

avatar image Stabbarey · Sep 03, 2014 at 10:01 PM 0
Share

@rutter So is this happening for everyone at the moment or what's the real problem here?

avatar image rutter · Sep 03, 2014 at 10:02 PM 0
Share

@Stabbarey Unfortunately, it's a bug for everyone. There might be a setting we can change to fix it, but I haven't really looked. I'll post back here if I ever find one.

2 Replies

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

Answer by brycem24 · Sep 03, 2014 at 10:14 PM

Hi to solve this go into your preferences and search through there for auto tabbing. It is a setting. You can turn off a lot for that. I prefer to have it as manual. I would be more detailed but I uninstalled my MonoDevelop and took the plunge to Visual Studio.

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
0

Answer by rutter · Sep 03, 2014 at 10:15 PM

Found another thread that talks about this. I'll quote Berzeger's answer:

This was driving me nuts! But I found a fix -- in MonoDevelop go to Tools -> Options -> Text Editor -> Behavior and switch Indentation Mode from Smart to Automatic. Not so smart after all, huh? Kudos to BoNaNa from Unity forums who solved it.

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 Stabbarey · Sep 03, 2014 at 10:28 PM 0
Share

Thanks guys! Will definetly try this when i have time

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Strange Glitch Whenever I First Open Unity 0 Answers

Problem with editor 1 Answer

Problem with touch 1 Answer

Is there a way to analyse pictures in Unity? 1 Answer

Exporting models from Blender to Unity problem. 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