Tool chain for working with cocos2d-x 3 javascript

What would be the best toolchain to work with cocos2d-x 3 javascript? Preferably on Mac OS?

The issue I struggle with the most is the auto completion.

It’s simply impossible to work efficiently without a good view of the existing javascript API. And my current tool chain does not offer any sensible way to fix this.

Is there a way to develop for cocos2d-x javascript with auto completion? Is there a way of debugging the apps in one place?

Currently I’m using Sublime Text for javascript editing, Xcode for compiling and debugging on Mac OS and iOS and Eclipse for Android.
Are there any plugins for one of these tools to enable auto completion for example?

You can try WebStorm.