Tuesday, August 14, 2012

How to disable auto formatting when pasting code in Eclipse

Mac Location:

Open Finder -> Click Go -> Go to Folder

Enter the following  /Users/"YOUR USERNAME"/Documents/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/

Open org.eclipse.php.ui.prefs in textedit

Add "smartPaste=true"

Save and close.

SourceLink

***DOESN'T WORK IN OS X***  I didn't try it in windows.

FOUND IT!!!

Click Eclipse -> Preferences -> PHP - > Editor -> Typing -> Uncheck "When Pasting Adjust Indentation" 

Click Ok

HAPPY PASTING!

ShareThis