Skip to main content



      Home
Home » Language IDEs » PHP Development Tools (PDT) » If you copy & paste code, indentation is messed up
If you copy & paste code, indentation is messed up [message #1061551] Sun, 02 June 2013 15:10 Go to next message
Eclipse UserFriend
Simple example; if you you copy & paste this code:

if ($a
    or $b)
{
    echo $a;
}


it will pasted as

if ($a
or $b)
{
    echo $a;
}


Note the indentation of "or $b". Of course this if statement doesn't need the newline, it's just an example.

I find this "feature" really annoying, is there not a way to disable it?

[Updated on: Wed, 05 June 2013 04:02] by Moderator

Re: If you copy & paste code, indentation is messed up [message #1061858 is a reply to message #1061551] Tue, 04 June 2013 07:56 Go to previous message
Eclipse UserFriend
Okay... you have to go to
Preferences -> PHP -> Editor -> Typing
and deselect "Adjust indentation" under "When pasting". I also filed a bug about it. Thank you Lucas Malor. You're welcome Lucas Malor.

[Updated on: Tue, 04 June 2013 07:56] by Moderator

Previous Topic:How to "run" a PHP file
Next Topic:get binding from ASTParser
Goto Forum:
  


Current Time: Mon Jul 07 08:23:21 EDT 2025

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

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

Back to the top