aceio76
Silver Supporter
|
Autocomplete for local variables
Hi Greg,
I'm not sure if this was always the case, but did the esenthel editor ever included local variables in the autocomplete?
For instance:
class newclass
{
Vec somepoint;
somepoint=VecZero; // <-- typing 'somepoint' will not show it listed in the autocomplete
}
|
|
11-13-2016 02:09 AM |
|
Esenthel
Administrator
|
RE: Autocomplete for local variables
(11-13-2016 02:09 AM)aceio76 Wrote: class newclass
{
Vec somepoint;
somepoint=VecZero; // <-- typing 'somepoint' will not show it listed in the autocomplete
}
Yes it should work OK, however in your case, you're not typing this inside a method.
You need to do:
Code:
class Class
{
int x=0;
}
or
Code:
class Class
{
int x;
void func()
{
x=0;
}
}
|
|
11-13-2016 03:50 AM |
|
aceio76
Silver Supporter
|
RE: Autocomplete for local variables
Ah yes you're right, it doesn't make sense to autocomplete when the variable can't be referenced anyway. I don't know why I thought the autocomplete would work if outside of a method
|
|
11-14-2016 07:36 PM |
|