switch case autocomplete is inconsistent

Answered

in such context:

 

enum STATE {Deactivated, Activate, Activate2Idle, Idle, Idle2GoGetStuff, GoGetStuff, GoGetStuff2WaitForStuff, WaitForStuff, WaitForStuff2Grab, Grab, Grab2BringThenDrop, BringThenDrop, BringThenDrop2ReturnToIdleAfterDrop, ReturnToIdleAfterDrop, ReturnToIdleAfterDrop2Idle, WaitingForStuff2Idle}
STATE state;

Transportable aboutToCarry, carrying;
void Update()
{
switch (state)
{

case state sometimes autocompletes as STATE. list of enums and some times doesn't

0
1 comment

Hi Laurent! 

I suppose you see something like that: 

 

The position of items in autocomplete depends on an inner ratio based on usage statistics. You can clear it with clearing caches via `File | Invalidate caches and restart`.

Also, there is a known issue with capitalization, and you can add your feedback there. As a workaround, you could separate fields by some prefix to avoid this situation. I hope this helps! Should you have any questions, let us know. 

 

0

Please sign in to leave a comment.