A Sublime Text 2 / SublimeCodeIntel auto-completion data generator for buildout
Project description
This recipe generates a configuration file for SublimeCodeIntel, a SublimeText plugin .
To use it, add a codeintel configuration section to your buildout.cfg file and the corresponding part:
[buildout] parts = django codeintel ... [codeintel] recipe = corneti.recipes.codeintel eggs = ${django:eggs} extra-paths = ${django:location} ${django:extra-paths}
Setting .codeintel folder
SublimeCodeIntel will pick up auto-completion information from .codeintel folder from your Sublime Text project root.
By default, this recipe generates the folder in the buildout root. You can specify optional codeintel-path if you want to generate .codeintel in some other location.
Example how to create CodeIntel information inside src/ folder. Usually src/ is used for all Python eggs you are currently developing yourself i.e. essentially all of your project codebase:
[codeintel] recipe = corneti.recipes.codeintel eggs = ${instance:eggs} target = ${buildout:directory}/src/.codeintel
This will generate file src/.codeintel/config which will list all your eggs used by [instance] in your buildout.cfg.
Now you can open your src/ folder as project in Sublime with perfect auto-completion support:
subl src
… or just open src/ folder using File > Open folder.
Tips
Reset auto-completion by choosing SublimeCodeIntel: Reset in command browser (CMD + SHIFT + P) [OSX].
Force auto-completion dialog: CMD + P [OSX].
Credits
Based on the mkcodeintel script available in optilude’s SublimeTextMisc repository.
codeintel-path option and much better documentation by Mikko Ohtamaa .
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for corneti.recipes.codeintel-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6dd44c9c5857f31499588cb87c272415cec23eec18a31fbb7dffe2a677b6272 |
|
MD5 | 9811b1e2c662f50e68661aba77e2a336 |
|
BLAKE2b-256 | de034e27a14c23a15cf7e67f45ad36806e5d85e7c8fd20410a7c462074f7fec6 |