Text
Hey, I made a new script for Wing IDE 4. Users of Wing may want to check it out.
It’s called instantiate.
What it does is simple. Often you want to instantiate an object from a class like this:
cat_nip = CatNip()
The annoying thing about typing this is that you don’t get autocompletion for cat_nip because it doesn’t exist yet. But you do usually get autocompletion for CatNip. Hence this script: You type CatNip, execute the script, and then automatically get this line:
cat_nip = CatNip()
With the cursor already placed inside the parentheses for you to type the arguments.
The source is on GitHub:
https://github.com/cool-RR/cute-wing-stuff
Enjoy!