Skip to main content

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.

(See how to configure Sublime Text 2 commaline commands)

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

corneti.recipes.codeintel-0.2.1.tar.gz (4.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page