post

Converting Tabs to Spaces in PHPeclipse

In order to maintain harmony among several developers it is important to follow some core standards. With Symfony, it is standard practice to use a two space convention. Here is how to make PHPEclipse honor this policy while still allowing you to use the tab button.

  1. I recommend this distribution. Note that you need to start this program in administrator mode if you are using Vista.
  2. Window -> Preferences
  3. PHPeclipse Web Development-> PHP
  4. Go to the Appearance tab
  5. Set “Displayed tab width” to 2
  6. Go to the Typing tab
  7. Check “Insert spaces for tab”
  8. Click Apply and OK

Thanks to Isaac Saldana, of LinRails fame for this tip.

Comments (2)

Loading... Logging you in...
  • Logged in as
You can also use Anyedit to keep your tabs and spaces in check >=)
http://andrei.gmxhome.de/anyedit/

Setup:

1) Help -> Software Updates -> Find and Install.
2) Search for new features to install -> Next -> New Remote Site..."
3)Use the http://andrei.gmxhome.de/eclipse/ as url.

The website has some good tips on how to get the best of Anyedit.

Just another suggestion/alternative =)
I have a problem in using run tab in eclipse(php) please give me a solution. Reply me as soon as possible

Post a new comment

Comments by