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 09:46 Go to next message
Franzen Balthazar is currently offline Franzen Balthazar
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 06:01 Go to previous message
Dani Megert is currently offline Dani Megert
Messages: 3801
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: Mon Jul 28 12:42:10 EDT 2014

Powered by FUDForum. Page generated in 0.02301 seconds