Reputation: 51
I have a Eclipse project. I am searching for a way to generate code-templates that will appear automatically when I am adding a file to the project. For example, I want to add a documentation code-template (eclipse's template is-
/**
**
** @author:
**/)
such that it will automatically appear in each java class file I add to the project, without making it manually.
Is there a good way to do so?
Upvotes: 0
Views: 551
Reputation: 51
Sharing @howlger answer: In eclipse - Window>Preferences>Configure Project Specific Settings> choose project and then ok , then add any code-template you want.
Upvotes: 0
Reputation: 1089
You're able to change this behavior in
Window -> Preferences -> Java -> Code Style -> Code templates -> Comments -> Files
Upvotes: 2