Tomas
Tomas

Reputation: 459

Intellij 11.1.1, Corona API code completion not working

Problem

Installed

Auto completion not working properly.

It displays e.g. physics, but not e.g. physics.addBody, as shown in this screenshot

Screenshot

Any ideas?

Upvotes: 0

Views: 872

Answers (1)

Mike Newall
Mike Newall

Reputation: 36

I've been having the same trouble. The only way I could get it to work is by splitting the API file into separate files and creating a module for each.

So you'd open up the corona_api.lua, and copy all of the physics functions into a new file called "physics" then inside this file you should do something like this;

module "physics"
function  addBody() end
function  getGravity() end
function  newJoint() end
function  pause() end
and so on...

you can find and replace the physics. at the start of the functions to make life easier.

Upvotes: 2

Related Questions