Automatically open class file when it's created.

Closes #27