add code template and formatter template