Here is super cool new plugin i created: github.com/Monnoroch/EchoEvaluator for automatic text generation. Inspired by php, which replaces <?php ... ?> tags with echo result. Now, you can easily generate text by simply writing python script, that echoes that text, selecting it and pressing ctrl+shift+e!
Consider this:
enum Tag {A, B, C, ...., Z};
std::string tagToString(Tag v) {
switch(v) {
for c in range(ord('A'), ord('Z')):
cc = chr(c)
echo("\t\tcase %s: return \"%s\";\n" % (cc, cc))
}
return "<error>";
}
Now, if you select the python code and press ctrl+shift+e, this code will be replaced with the switch implementation. No more tedious typing work for you!