Extracting parts of filenames per macro in file templates
I'm just starting a small AngularJS 2.0 project and wanted to create some file templates for Angular components and services. I adopted the naming conventions for files from the Angular quickstart tutorial. They use the pattern <identifier>.<component | service | module>.ts. I want to extract the part before the first dot for generating the class name and, for example, the components selector. As far as i can see this is not possible today with the standard templates.
Do you provide an opportunity to write custom macros and embed them in the Template Explorer?
Best Regards
Andreas
Please sign in to leave a comment.