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?
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.)
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.