How to get Zend Studio PHP code like NetBeans 7.1?

I work with NetBeans 7.1, I like the way NetBeans formats PHP code.

I am working on this project with another developer, but he uses Zend Studio (ZS), and when he reformat the code with ZS and commits the changes to git, it looks like he changed the whole file, when in fact it was just changing a few lines . This goes beyond the whole purpose of version control if every small change in the code looks like the whole file has been changed.

He likes Zend Studio, I do not want to impose it on another product. I will not mind using ZS, but I canโ€™t pay the $ 300 price when I have what I need with NetBeans for free.

So, I'm looking for a way to get him to continue using his IDE, but when he formats his code, ZS does the same as NetBeans.

Any suggestions on what to change to Zend Studio so that code formatting like NetBeans 7.1 is?

Thanks!

+4
source share
1 answer

Try installing the PHPCS plugin in NetBeans and select the ZEND platform ruleset for setting coding standards, this will automatically format the code in NetBeans, as it is done in ZS. You can use Google, as well as take a look at some of these articles:

In short, you need to decide and comply with some coding standards.

+2
source

Source: https://habr.com/ru/post/1412041/


All Articles