Skip to main content



      Home
Home » Newcomers » Newcomers » hide (filter) comments
hide (filter) comments [message #175488] Thu, 19 October 2006 10:14 Go to next message
Eclipse UserFriend
Originally posted by: hannes.ramsenthaler.anton-paar.com

Hi everyone!

I want to hide parts of my code viewed in eclipse.
For example:
/* ABC
comment
comment
comment
*/
void main(void)
{
int i=0;
int j=1;
/* ABC comment1
comment2 */
i=j;
...
}

should be viewed like:
void main(void)
{
int i=0;
int j=1;
i=j;
...
}

..

Each comment starts with: "/* ABC"
end ends with: "*/" (a regex is possible for the filter)
I can't remove this comments permanetly in the source file cause other
programmers need them.

Is there a plug-in or someting like that, which solves my problem?
Re: hide (filter) comments [message #175503 is a reply to message #175488] Thu, 19 October 2006 10:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wayne.beaton._NOSPAM_eclipse.org

hannes wrote:
> Hi everyone!
>
> I want to hide parts of my code viewed in eclipse.
> For example:
> /* ABC
> comment
> comment
> comment
> */
> void main(void)
> {
> int i=0;
> int j=1;
> /* ABC comment1
> comment2 */
> i=j;
> ...
> }
>
> should be viewed like:
> void main(void)
> {
> int i=0;
> int j=1;
> i=j;
> ...
> }
>
> .
>
> Each comment starts with: "/* ABC"
> end ends with: "*/" (a regex is possible for the filter)
> I can't remove this comments permanetly in the source file cause other
> programmers need them.
>
> Is there a plug-in or someting like that, which solves my problem?
>
In the Java editor, there are two strips on the left side (three if
you're showing line numbers). The rightmost strip is for folding (there
are little circles containing pluses and minuses). Put your cursor there
and from the pop-up menu, select "Folding > Collapse comments".

Good enough?

Wayne
Re: hide (filter) comments [message #175719 is a reply to message #175503] Fri, 20 October 2006 03:12 Go to previous message
Eclipse UserFriend
Originally posted by: hannes.ramsenthaler.anton-paar.com

Wayne Beaton wrote:
> In the Java editor, there are two strips on the left side (three if
> you're showing line numbers). The rightmost strip is for folding (there
> are little circles containing pluses and minuses). Put your cursor there
> and from the pop-up menu, select "Folding > Collapse comments".

> Good enough?

Im using the c/c++ editor,
and i don't want to collapse all comments - only those starting with "/*
ABC" throw "*/".

Do you know another solution?
Previous Topic:Tomcat localhost log file
Next Topic:com.sun.jimi/com.genetic/netscape.javascript.JSObject
Goto Forum:
  


Current Time: Sat Aug 30 08:03:25 EDT 2025

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

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

Back to the top