In Zend Studio, I can use
/**
@return CUser
*/
function getUser() {
}
to tell IDE, the type of return value of the getUser function is CUser.
but I can’t do the same thing in pydev, I want to know how I can do the same thing.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
PyDev does have predefined completion modules. It doesn’t look like it works as nicely as ZendStudio, but it’s similar to the feature you’re looking for.
Take a look here:
http://pydev.org/manual_101_interpreter.html#PyDevInterpreterConfiguration-PredefinedCompletions
You basically define a module that acts like an interface/documentation of your module.