Cocos IDE v2 code completion

Your problem is my problem too, here is the topic Cocos code IDE V2.0.0 beta : No javascript code completion?
You can use my temporary solution by import custom setting to the IDE follow this post.
Help! Native Buttons and Controls hit area problem

How to : Go to File | Import Settings…