- Home /
Monodevelop autocomplete on private variables
Hello, monodevelop is driving me crazy :(
Is there any way to turn on autocomplete for private variables? (UnityScript)
or can you suggest any alternative good editor? i have tried sublime text unity plugins but im not satisfied with it :(
Tools -> Options -> Text Editor -> General -> "Enable code completion" is active?
Answer by vexe · Feb 23, 2014 at 05:21 PM
A lot of IDE's don't show you private parts for object oriented languages in contexts where you can't access them (outside the class they're declared in for example) - In VS C++ however, intellisence shows you private parts too - But not in C#. I think MonoDev follows the same philosophy.
You might think it makes sense to show private parts too, after all they're members right?
But not when it comes to object oriented languages, where data hiding and encapsulation plays a big role - after all, what's the purpose of making something private
? is to keep it away hidden from the consumer - he doesn't have to know about it - it's for you the class programmer not for the user :)
:) i'm just asking for autocomplete inside class for class variables.
All other IDE's that i was using previously (Eclipse, netbeans, xCode...) are doing it...
(please post comments as comments and not answers :))
if you're inside the class, you should get autocomplete by default - I was talking when you're outside the class.
yes :) i'm talking about that, i am inside class and i am not getting autocomplete for private variables
Example:
#pragma strict
public var player:Transform;
private var someVar:Transform;
function Start()
{
// here autocomplete works only for "player" variable not for "someVar"
}
O$$anonymous$$ it seems this has been around for a while - have you seen this?
Ahh, maybe that link isn't helpful. You have to mess around in $$anonymous$$onoDev, google around I'm sure you'll find others with a similar problem.
Your answer
Follow this Question
Related Questions
Monodevelop code javascript autocomplete 1 Answer
Unity 4.3 Monodevelop autocompletion not working for javascript names and enums 0 Answers
Unity 5.3 Monodevelop JS Not Checking for Errors or Auto-Completing/Suggesting (C# fine) 1 Answer
Refactoring & Find References for JavaScript in MonoDevelop 1 Answer
Javascript editor 5 Answers