Is there a way to configure Pydev to activate auto-completion for Sphinx-like docuementation strings? For instance it should be active after ":".. Currently, auto-completion only works after "@" within documentation stings.
It's currently not possible. Please enter a feature request for that.
I think there is already a corresping feature request. http://sourceforge.net/tracker/index.php?func=detail&aid=2947798&group_id=85796&atid=577332
I do not know how complicated the change might be… But if you give me a pointer to the interesting parts of the source code I might be able to provide a patch.
If you're willing to take a look, it should actually be easy (just didn't look at it because of time matters).
The code that completes for the '@' right now is: https://github.com/aptana/Pydev/blob/master/plugins/org.python.pydev/src_completions/org/python/pydev/editor/codecompletion/PyStringCodeCompletion.java (so, it'd be a matter of extending that).
So, it should be simple to complete for '.' (checking if there's a tab/space before it) based on the code that completes for '@'. Note that you should probably also add a preference to know if the user wants the default completion for epydoc or for sphinx (at window > preferences > pydev > editor > code style > docstrings) - you should be able to find that preferences page through looking for 'docstrings' in the plugin.xml.
Also, please add a test case to: https://github.com/aptana/Pydev/blob/master/plugins/org.python.pydev/tests_completions/org/python/pydev/editor/codecompletion/PythonCompletionStringsTest.java if you get up to the point of doing it.
Instructions for getting the code are available at: http://pydev.org/developers.html and if you need any help, just ask.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.