Last Site Update: December 4th, 2016 | Latest Version: 5.4.0







PyDev LiClipse

Previous (Refactoring) Root Next (Code Coverage)

Content Assistants

Some 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.

Content assistants

Make 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:

If we let the cursor at the undefined token line and press Ctrl+1, we get:

After choosing the second import we have:

Now, if we had chosen the third option (@UndefinedVariable), a note would have been entered in the code, to warn PyDev to ignore that error, as pointed below...

Don't analyze module

PyDev 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.

If you use automatically generated files, it might be useful to put that warning on those files, as it would not be useful to analyze those files. The example below shows the result of this action.

After choosing choosing it, we have:

Move import to global scope



Create docstring

*NOTE:*Must be called in the 'def' line.



Assign result to new local variable (or field)



Assign parameters to attributes



Surround code with try..except or try..finally

*NOTE:*Must have some code selected



Previous (Refactoring) Root Next (Code Coverage)

PyDev development

PyDev is open source and depends on your contributions! This may be in the form of bug fixes, answers on stackoverflow, new features...

Another option is financially supporting it at: Patreon (which provides a way to support it monthly and get rewards starting with $1).

Or through 1-time contributions at:


Search PyDev-related content

Copyright: Brainwy Software Ltda, 2014-2016