Powerful quick-cocos2d-x develop plugin for sublime text 2/3
CHINESE:http://my.oschina.net/lonewolf/blog?catalog=412647
A quick-cocos2d-x develop plugin for sublime text 2/3.
##Features
- quick-cocos2d-x api completions support(framework and cocos2dx tolua)
- goto definition
- create new project
- run with player
- compile scripts
- user definition auto completion
- system api completions support (lua 5.1)
- some snippets,like if-else,if-elseif-else,while,comment,repeat-until....
- create new lua file with template
- lua biuld system
1.Install via Package Control
2.Download .zip source file, then unzip it,rename it with "QuickXDev",then clone "QuickXDev" folder into the SublimeText Packages
directory. A restart of SublimeText might be nessecary to complete the install.
###setting
{
"quick_cocos2dx_root": "<path>/quick-cocos2d-x",
"author": "<your name>",
"compile_scripts_key": "encrypt_key"
}
you must set "quick_cocos2dx_root"
select a word then right click ->Goto Definition or press key ctrl+shift+g
- support framework (i.e. CCNodeExtend, display.newScene, newScene, display.CENTER)
- support cocos2dx (i.e. CCMoveBy, getWritablePath, CCMoveTo:create, create, kCCHTTPRequestMethodGET)
- support user definition
right click a folder on the sidebar,select "Create New Project",enter the package name,then a new project will created.
right click "scripts" folder on the sidebar,select "Run With Player",the player will run with current project.
right click "scripts" folder on the sidebar,select "Compile Scripts",enter the output file,then it will compile all scripts to the output file.
right click "scripts" folder on the sidebar,select "Rebuild User Definition". and when you save a lua file in sublime,it will auto build all user definition in the current file.