comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » "Automatically indent lines" breaks copying and pasting code
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
"Automatically indent lines" breaks copying and pasting code [message #93534] Fri, 12 August 2016 02:02 Go to next message
markb77 is currently offline  markb77
Messages: 217
Registered: July 2006
Senior Member
Hi,

I have the "Automatically indent lines" option set in the Eclipse preferences under "IDL / Editor".

However, this option breaks copying and pasting code. When I copy a section of code and paste it somewhere else, the indentation of the code is completely different, presumably due to the "automatic" indentation.

This is very inconvenient. Is there a way to turn off the automatic formatting when pasting code, which is presumably already formatted according to the coder's wishes?

thanks
Mark
Re: "Automatically indent lines" breaks copying and pasting code [message #93535 is a reply to message #93534] Fri, 12 August 2016 02:02 Go to previous messageGo to next message
markb77 is currently offline  markb77
Messages: 217
Registered: July 2006
Senior Member
my system:
{ x86_64 Win32 Windows Microsoft Windows 8.5.1 Nov 14 2015 64 64}
Re: "Automatically indent lines" breaks copying and pasting code [message #93536 is a reply to message #93535] Fri, 12 August 2016 02:32 Go to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Friday, August 12, 2016 at 11:02:53 AM UTC+2, superchromix wrote:
> my system:
> { x86_64 Win32 Windows Microsoft Windows 8.5.1 Nov 14 2015 64 64}

I also don't like this and I don't like deactivating "Automatically indent lines", so I'm using this workaround:
when pasting, select some text (empty line will do) and the indentation is not changed when pasting.

So I always enter an empty line, select it and then paste. Not ideal, but works.

Let me know if you find a better solution!

Cheers,
Helder
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Modify netcdf attributes
Next Topic: cgcontour and cgcolorbar irregular levels

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 09:19:42 PDT 2025

Total time taken to generate the page: 0.00618 seconds