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 rb485 · Nov 17, 2014 at 06:28 PM · monodevelopautocomplete

Monodevelop suggestions without autocomplete

I'm just starting out with Monodevelop and Unity, and the autocomplete feature of monodevelop is really useful.

I have come up against a problem with it though. If I have a local variable called mode, this sometimes doesn't appear in the autocomplete list of options, but something from the Unity API like FogMode does. Then if I type mode followed by =2;, it will autocomplete to FogMode=2;.

This has led to me introducing quite a few bugs into my code as my variables are being replaced with other random similar sounding things from the API. Is there a way to keep the useful list of autocomplete suggestions, without having to have one of them added unless I specifically select it from the list?

Comment
Add comment · Show 1
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 meat5000 ♦ · Nov 17, 2014 at 06:31 PM 0
Share

Surely its in the Prefs?

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Jeff-Kesselman · Nov 17, 2014 at 06:31 PM

This pretty much always indicates a syntax error higher up from the place you are having trouble. Often mismatched {}, () or quotes.

if the compiler doesn't understand your code it cannot make good suggestions.

(If you are used to Netbeans it actually has a particularly smart AI system called the "fuzzy compiler" that tries to guess and gets it right a surprising amount of the time, but most IDEs aren't that sophisticated.)

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 rb485 · Nov 17, 2014 at 06:37 PM 0
Share

There's not a syntax error in my code - I don't want perfect code completion, I'm just looking for a way to stop it automatically using one of its own suggestions if I haven't asked for it.

avatar image Jeff-Kesselman · Nov 17, 2014 at 06:42 PM 0
Share

As the Bored $$anonymous$$ormon says, hit escape to remove the popup without selecting anything.

or go into preferences and turn it off completely.

avatar image
0

Answer by Kiwasi · Nov 17, 2014 at 06:35 PM

If you press escape the list goes away, allowing you to type whatever you want.

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 meat5000 ♦ · Nov 17, 2014 at 06:40 PM 0
Share

Ha this re$$anonymous$$ds of breaking my CTRL key from playing Painkiller.

Be prepared to spam Escape key :P

avatar image rb485 · Nov 17, 2014 at 06:48 PM 0
Share

Yeah, this might have to be the workaround. Still not ideal though, as I would prob type mode= before I even realised it had come up with a suggestion

avatar image
0

Answer by meat5000 · Nov 17, 2014 at 06:50 PM

The answer you seek is contain-ed within these pages

http://answers.unity3d.com/questions/408956/monodevelop-autocorrect-annoyance.html

Ben Stoneman says :

 Open "MonoDevelop"
 Click "Tools"
 Click "Options"
 Select "General" under "Text Editor"
 Un-check "Enable code completion"

Twice Circled says :

Anyone having this problem in more recent versions of MonoDevelop, try switching to "Sugggestion Mode". Go to Edit -> Toggle Completion Suggestion Mode.

It only autocompletes if you confirm with Enter or Tab.

Comment
Add comment · Show 5 · 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 rb485 · Nov 17, 2014 at 07:03 PM 0
Share

Ben Stoneman's is no good as I still want the list - the comment under his answer by sgmongo looks like exactly what I want, I just can't find any "Commit completion list selection with space or punctuation" option in my monodevelop

avatar image rb485 · Nov 17, 2014 at 07:05 PM 0
Share

And TwiceCircled's solution is a step in the right direction, but as the comments say a full stop still triggers the autocomplete

avatar image meat5000 ♦ · Nov 17, 2014 at 07:08 PM 0
Share

Ah well, I tried :D sorry

avatar image rb485 · Nov 17, 2014 at 07:14 PM 0
Share

Well you've led me closer to the secret! $$anonymous$$aybe the answer is out there somewhere...

avatar image Kiwasi · Nov 17, 2014 at 07:20 PM 0
Share

It may well be found in Visual Studio. There is nothing saying you are tied to $$anonymous$$onoDevelop for your Unity project. I have seen some people that prefer the autocomplete features of Visual Studio. Never tried it myself.

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Monodevelop autocomplete on enter, not space. 1 Answer

MonoDevelop AutoComplete not working 2 Answers

How to force autocompletion with correct naming convention 0 Answers

What do the icons in Monodevelop's autocomplete mean? 1 Answer

Monodevelop code javascript autocomplete 1 Answer


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