Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Pasting // comments
Pasting // comments [message #244186] Fri, 01 June 2007 07:39 Go to next message
Eclipse UserFriend
Hi!

While editing a Java file,
why is it that when you copy "// my comment" and then you paste it on a
new line, the "//" part goes to the first column whereas the rest of the
comment is automatically indented.
Is there a way to avoid this behavior?

Thank you very much for your help!

BoD
Re: Pasting // comments [message #244192 is a reply to message #244186] Fri, 01 June 2007 09:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse5.rizzoweb.com

BoD wrote:
> Hi!
>
> While editing a Java file, why is it that when you copy "// my comment"
> and then you paste it on a new line, the "//" part goes to the first
> column whereas the rest of the comment is automatically indented.
> Is there a way to avoid this behavior?
>
> Thank you very much for your help!

You can disable the "auto-indent during paste" feature entirely:
Preferences > Java > Editor > Typing
You can also file a bug report in Bugzilla about it - if so, please
search for an existing one first.

Hope this helps,
Eric
Re: Pasting // comments [message #244197 is a reply to message #244192] Fri, 01 June 2007 12:02 Go to previous message
Eclipse UserFriend
Thank you very much, it works.

BoD


Eric Rizzo wrote:
>
> You can disable the "auto-indent during paste" feature entirely:
> Preferences > Java > Editor > Typing
> You can also file a bug report in Bugzilla about it - if so, please
> search for an existing one first.
Previous Topic:How to participate in JDT project?
Next Topic:Enhance Package Explorer Toolbar for SVN
Goto Forum:
  


Current Time: Thu Jul 17 09:14:21 EDT 2025

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

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

Back to the top