Issue
Is there shortcut or quicker way in Pydev to insert if __name__ == '__main__'
?
Solution
PyDev is based on Eclipse platform and all Eclipse tricks work there.
You can create your own shortcut templates for autocompletion.
E.g. if you type main[ctrl+space]
it completes to if __name__ == "__main__"
.
More information how to create custom Eclipse templates:
https://dzone.com/articles/effective-eclipse-custom-templ
Answered By - Mikko Ohtamaa
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.