Import code formatting extension from calberto's https://github.com/carlosalberto/TypeScriptBinding, with some adjustment to fit with this project.