Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Pasting comment in Java editor odd behavior.(Shifts double slashes to left.)
Pasting comment in Java editor odd behavior. [message #776483] Sun, 08 January 2012 14:46 Go to next message
Franzen Balthazar is currently offline Franzen BalthazarFriend
Messages: 1
Registered: January 2012
Junior Member
I'm a newbie here so I apologize if I should be asking this in another forum.

When I copy/past a block of text in the Java editor that starts with a double-slash comment line, the indentation on the comments is removed and the line is oddly reformatted.

For example, pasting this text:
      // This is a comment.
      int i = 0;



results in this:
//       This is a comment.
      int 0;



It's a nit, but I run into it a lot and it's aggravating.

Does anyone know how to tweak this behavior, and thanks.

Fzen
Re: Pasting comment in Java editor odd behavior. [message #776841 is a reply to message #776483] Mon, 09 January 2012 11:01 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 08.01.2012 15:46, Franzen Balthazar wrote:
> I'm a newbie here so I apologize if I should be asking this in another
> forum.
>
> When I copy/past a block of text in the Java editor that starts with a
> double-slash comment line, the indentation on the comments is removed
> and the line is oddly reformatted.
>
> For example, pasting this text:
>
> // This is a comment.
> int i = 0;
>
>
>
> results in this:
>
> // This is a comment.
> int 0;
>
>
>
> It's a nit, but I run into it a lot and it's aggravating.
I can't reproduce this. Please file a bug against JDT Text with steps to
reproduce it.

Dani
> Does anyone know how to tweak this behavior, and thanks.
>
> Fzen
Previous Topic:Set default Javadoc command
Next Topic:problem installing and running glassfish v3
Goto Forum:
  


Current Time: Fri Apr 19 02:51:35 GMT 2024

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

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

Back to the top