"Automatically indent lines" breaks copying and pasting code [message #93534] |
Fri, 12 August 2016 02:02  |
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 #93536 is a reply to message #93535] |
Fri, 12 August 2016 02:32  |
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
|
|
|