I use Eclipse for PHP project development, according to the company development norms, to use 4 spaces to replace the TAB key, search on the Internet a lot, are not too comprehensive, now the detailed configuration is displayed as follows:
first go to Preferences: window (Windows), Preferences (preferences ...)
1. windows= "preferences=" general= "editors=" text editors tick "Insert spaces for tabs"
2. windows= "preferences=" phpeclipse= "php=" typing tick "insert spaces for tabs (...) )”
This completes the configuration.
However, because of the different versions, some of these problems can occur: if{and then press ENTER to wrap, will automatically indent a tab and this tab is not correctly replaced with 4 spaces, the workaround
Enter:Windows= "preferences=" phpeclipse= "php=" formatter =>style See option "indentation is represented by a tab" checked (by default), if selected, This option is not selected, and if unchecked, this option is selected and restarting eclipse will find the settings successful
http://www.bkjia.com/PHPjc/327804.html www.bkjia.com true http://www.bkjia.com/PHPjc/327804.html techarticle I use Eclipse for PHP project development, according to the company development norms, to use 4 spaces to replace the TAB key, search on the Internet a lot, are not too comprehensive, now will be detailed configuration display as follows: ...