Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Is there an "Add Comment" feature in CDT?
Is there an "Add Comment" feature in CDT? [message #160489] Wed, 14 December 2005 19:27 Go to next message
Eclipse UserFriend
Originally posted by: HMJobSearch.comcast.net

Is there an "Add Comment" feature for C++ Editor similar to Java Editor to
add Javadoc-like comments for use with doxygen?
Re: Is there an "Add Comment" feature in CDT? [message #160646 is a reply to message #160489] Sun, 18 December 2005 07:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bjcbell.gmail.com

The best you can get is eclox (http://home.gna.org/eclox/). It gives you a
doxyfile editor and a button that allows you to build your doxygen docs
from within eclipse.

HM wrote:

> Is there an "Add Comment" feature for C++ Editor similar to Java Editor to
> add Javadoc-like comments for use with doxygen?No there is no built in tool
in CDT to create doxygen comments.
Re: Is there an "Add Comment" feature in CDT? [message #160688 is a reply to message #160489] Mon, 19 December 2005 20:54 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse.dharty.com

As others have stated, there is not one that exists, but its pretty easy
to add basic ones.

For example, In Windows->Preferences->C/C++->Editor->Templates, I added
a new template I named "fn".

If I type in fn and then hit ctrl+space, the "fn" is replaced by the
following at the current cursor position:

/**
* @fn ${enclosing_method}
*
************************************************************ ******************/


You can also add other tags like @author, @param or @return.
Unfortunately, the values for most of these fields will have to be
manually inserted.

You could also name your template "/**" so that you could type /**
followed by ctrl+space to create the same effect.

D


HM wrote:
> Is there an "Add Comment" feature for C++ Editor similar to Java Editor
> to add Javadoc-like comments for use with doxygen?
>
>
Previous Topic:Missing last line in console output
Next Topic:CDT folding
Goto Forum:
  


Current Time: Mon Jul 22 00:30:54 GMT 2024

Powered by FUDForum. Page generated in 0.03430 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top