Sublime text 2 google app engine code completion

夙愿已清 提交于 2020-01-05 10:11:34

问题


just trying out sublime text and like it, but is there any way to customize it for use with google app engine? Would be nice to at least have code completion.

Thanks


回答1:


If you're not already using it, install Package Control and then install SublimeCodeIntel. While not specifically for GAE, it provides intelligent code completion for any modules that are imported into your code. The initial run will take a while, as it has to index everything and GAE is quite large, but it'll definitely prove its worth as you use it. Take some time to browse through the community packages for Package Control (as well as wbond's own), as there's a lot of good stuff out there for ST2.

Once your code is ready to deploy, you can use the appcfg.py command line utility from the SDK in a build system along the lines of the following:

{
  "cmd": ["appcfg.py --option --other_option=foo update", "$project_path"],
  "path": "C:/Program Files/Google/google_appengine",
  "encoding": "UTF-8",
  "shell": true
}

where $project_path is an internal ST2 variable taken from your project settings (under the Project menu).



来源:https://stackoverflow.com/questions/16878604/sublime-text-2-google-app-engine-code-completion

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!