|
Last Site Update: 26 August 2008 | Latest Version: 1.3.20 |
|
|
|
|
|
|
|
|
|
|
||||||
Content AssistantsSome content assistants to make your life easier... They are ALL activated through Ctrl+1, but which one(s) will show depend on the context it is activated. Currently, there are 4 content assistants implemented in the Pydev 'Open Source' and 3 provided in the Pydev Extensions: Pydev Extensions
Pydev 'Open Source'
Pydev Extensions content assistantsMake import for undefined token / Ignore error
Let's say that you have the code below, and that the code-analysis has just seen that the 'xmlreader' token was undefined
(this is important, as we cannot make this analysis before the token was generated). In this case, we have 2 options offered,
one to fix that importing the token and another one saying that pydev should ignore that error. The example below shows it in action:
Don't analyze module
Pydev Extensions can accept a 'note' to warn it not to make code-analysis at all in some module. In order to do
that' you can go to the first line of the module and press 'Ctrl+1' and choose the @PydevCodeAnalysisIgnore flag.
Doing that will add a note in the code to warn that this module should not be analyzed by Pydev Extensions.
Pydev 'Open Source' content assistantsMove import to global scope
Before Create docstring
NOTE:Must be called in the 'def' line.
Before
Assign result to new local variable (or field)
Before Assign parameters to attributes
Before Surround code with try..except or try..finally
NOTE:Must have some code selected
|
|||||||
|
© Copyright: Aptana, Inc. 2008 |