Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Uncomment command
Uncomment command [message #147163] Wed, 03 March 2004 09:25 Go to next message
Eclipse UserFriend
I recently switched to M7 and was disappointed to see that comment/uncomment
had been removed from the default keymap and replaced with toggle comment.
So I tried to map comment to ctrl+/ and uncomment to ctrl+shift+/. The
comment works fine. I cannot get uncomment to work. When I add the mapping
for ctrl+shift+/ for uncomment in the "general" context, I remove the
default mapping for "Add block comment" in the "editing java" context.

Any ideas?
Re: Uncomment command [message #147217 is a reply to message #147163] Wed, 03 March 2004 21:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ed.burnette.REMOVE.THIS.sas.com

Hi Ernest. I'm not sure why that didn't work but try defining Ctrl-/ and
Ctrl-\. . I did that for the Java editing context and it works fine. If
there's not a bugzilla request to bring back these original keydefs you
might want to enter one.

--
Ed Burnette

"Ernest Pasour" <Ernest.Pasour@sas.com> wrote in message
news:c24pm4$d51$1@eclipse.org...
> I recently switched to M7 and was disappointed to see that
comment/uncomment
> had been removed from the default keymap and replaced with toggle comment.
> So I tried to map comment to ctrl+/ and uncomment to ctrl+shift+/. The
> comment works fine. I cannot get uncomment to work. When I add the
mapping
> for ctrl+shift+/ for uncomment in the "general" context, I remove the
> default mapping for "Add block comment" in the "editing java" context.
>
> Any ideas?
>
>
Re: Uncomment command [message #147266 is a reply to message #147217] Thu, 04 March 2004 09:03 Go to previous messageGo to next message
Eclipse UserFriend
I filed a defect for the keymapping problem.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=53735



"Ed Burnette" <ed.burnette@REMOVE.THIS.sas.com> wrote in message
news:c264oi$4km$1@eclipse.org...
> Hi Ernest. I'm not sure why that didn't work but try defining Ctrl-/ and
> Ctrl-\. . I did that for the Java editing context and it works fine. If
> there's not a bugzilla request to bring back these original keydefs you
> might want to enter one.
>
> --
> Ed Burnette
>
> "Ernest Pasour" <Ernest.Pasour@sas.com> wrote in message
> news:c24pm4$d51$1@eclipse.org...
> > I recently switched to M7 and was disappointed to see that
> comment/uncomment
> > had been removed from the default keymap and replaced with toggle
comment.
> > So I tried to map comment to ctrl+/ and uncomment to ctrl+shift+/. The
> > comment works fine. I cannot get uncomment to work. When I add the
> mapping
> > for ctrl+shift+/ for uncomment in the "general" context, I remove the
> > default mapping for "Add block comment" in the "editing java" context.
> >
> > Any ideas?
> >
> >
>
>
Re: Uncomment command [message #147365 is a reply to message #147163] Thu, 04 March 2004 18:08 Go to previous messageGo to next message
Eclipse UserFriend
I'm not sure whether I should post it here or open a bug report, but I
really don't like the new comment
method. Usually I select a block of code and want to comment it out.
Placing */ on the *next* line makes the code to look ugly.

Can anybody comment on why the old method was abandoned?

Genady

Ernest Pasour wrote:

>I recently switched to M7 and was disappointed to see that comment/uncomment
>had been removed from the default keymap and replaced with toggle comment.
>So I tried to map comment to ctrl+/ and uncomment to ctrl+shift+/. The
>comment works fine. I cannot get uncomment to work. When I add the mapping
>for ctrl+shift+/ for uncomment in the "general" context, I remove the
>default mapping for "Add block comment" in the "editing java" context.
>
>Any ideas?
>
>
>
>

--
Genady Beryozkin
http://www.genady.net/
Re: Uncomment command [message #147429 is a reply to message #147365] Fri, 05 March 2004 04:56 Go to previous message
Eclipse UserFriend
Genady wrote:
> I'm not sure whether I should post it here or open a bug report, but I
> really don't like the new comment
> method. Usually I select a block of code and want to comment it out.
> Placing */ on the *next* line makes the code to look ugly.
>
> Can anybody comment on why the old method was abandoned?

What old method? I don't really see what you mean, can you post an example?

You can still use "Toggle Comment" to toggle line comments ("//"). The
"comment" and "uncomment" commands are still available, but not bound in
the default config. And there is "add block comment" which will add "/*"
and "*/" around your selection. Nothing changed there.

-tom

(PS. I guess some keybindings were switched on GTK)
Previous Topic:How do I add an already checked out CVS repository to my project?
Next Topic:Import question
Goto Forum:
  


Current Time: Sun Jun 08 17:49:43 EDT 2025

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

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

Back to the top