Tsserver format on save example. Run tsc --init in your project folder to create tsconfig.