Using the User Interface (Button): In the Templates view, click the Save File as Template button located in the view title bar.
Using the Command Palette: Run AutomationView: Save File as Template.