Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 19:10 Go to next message
Lucas MalorFriend
Messages: 12
Registered: May 2013
Junior Member
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 08:02]

Report message to a moderator

Re: If you copy & paste code, indentation is messed up [message #1061858 is a reply to message #1061551] Tue, 04 June 2013 11:56 Go to previous message
Lucas MalorFriend
Messages: 12
Registered: May 2013
Junior Member
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 11:56]

Report message to a moderator

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


Current Time: Wed Nov 26 16:35:43 GMT 2014

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

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