Perform the following steps:
1. Choose File > Settings > Editor > File and Code Templates.
2. On the Files tab in the right pane, select ArkTS File.
3. Add header comments and copyright notices.
Create an .ets file.