|Re: Add comment to existing java file? [message #663286 is a reply to message #663155]
||Mon, 04 April 2011 14:21
| Russell Bateman
Registered: July 2009
Location: Provo, Utah, USA
On 04-Apr-11 01:13, Nexon wrote:|
> Hi, all.
> could anyone tell me how to add a file comment to an existing java file
> I was trying to add comments on a class, constructors, and methods in a
> java file. I successfully got the comments added and almost happy with
> the Template feature (Thanks, Eclipse lol)
> But every time i tried adding a file comment to an existing file, I
> could see a class comment repeatedly generated(I know I will get a
> beautiful file comment at the top if I create a new java file)
> Help me out pls!
If I understand accurately, this is a question about the automatic
templates for comments and not about how to edit a comment in a Java file.
These templates are controlled, if you do not like the defaults, at
Window -> Preferences -> Java -> Code Style -> Code Templates ->
Comments. Experimentation will result in the action you prefer;
thereafter, you can save how this is done via the Import button and
restore this behavior to another Eclipse workspace via Export.
Hope this helps.
Powered by FUDForum
. Page generated in 0.01731 seconds