Home > Backend Development > PHP Tutorial > Parse eclipse in php to replace the tab key with spaces_PHP tutorial

Parse eclipse in php to replace the tab key with spaces_PHP tutorial

WBOY
Release: 2016-07-21 15:03:56
Original
791 people have browsed it

I use eclipse to develop PHP projects. According to the company's development specifications, the tab key must be replaced with 4 spaces. I searched a lot on the Internet, but none of them are comprehensive. Now the detailed configuration is listed as follows:
Enter first Preferences: Window (windows)->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, due to different versions, some problems will occur: if{ and then press the enter key to change the line, it will automatically indent a tab. However, this tab is not correctly replaced with 4 spaces. The solution
Enter: windows=》preferences=》phpeclipse=》php=》formatter =>style Check whether the option "indentation is represented by a tab" is selected (selected by default), If it is selected, do not select this option. If not, select this option and restart eclipse. You will find that the setting is successful

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/327804.htmlTechArticleI use eclipse to develop PHP projects. According to the company's development specifications, the tab key must be replaced with 4 spaces. I have searched a lot online, but none are comprehensive. Now the detailed configuration is listed as follows:...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template