Parsing PHP Eclipse replaces the TAB key with a space _php tips
Source: Internet
Author: User
I use Eclipse for PHP project development, according to the company development specifications, to use 4 spaces to replace the TAB key, search on the Internet a lot, are not too comprehensive, now detailed configuration display as follows:
First go to Preferences: Windows (Windows)-> Preferences (preferences ...) 1. windows= "preferences=" general= "editors=" text editors check "Insert spaces for tabs"
2. windows= "preferences=" phpeclipse= "php=" typing check "Insert spaces for tabs (...) )”
At this point, the configuration is complete.
However, because of the different versions, some of these problems will occur: if{and then press ENTER to wrap, will automatically indent a tab and this tab is not correctly replaced with 4 spaces, the solution
Enter:windows= "preferences=" phpeclipse= "php=" formatter =>style See options "indentation is represented by a tab" selected (selected by default), if selected, do not select this option, and if it is not selected, the restart eclipse will discover that the settings were successful
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.