如何在NetBeans 7.4中配置PHP编码规则 [英] How to configure PHP coding rules in netbeans 7.4

查看:179
本文介绍了如何在NetBeans 7.4中配置PHP编码规则的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认识到Netbeans 7.4中有PHP编码的新提示.

I recognized that there are new hints in Netbeans 7.4 for PHP coding.

例如,有一个行太多" 提示:

方法长度为115行(允许10行)

Method Length is 115 Lines (10 allowed)

另一个提示是:

函数声明中的嵌套块太多.

Too Many Nested Blocks in Function Declaration.

我发现我可以在Tools > Options > Editor > Hints > PHP下禁用每个提示.

I found out that I can disable each Hint under: Tools > Options > Editor > Hints > PHP.

但是我不想完全禁用Too Many Lines提示.我想做的是将IDE配置为允许100行而不是10行.是否可以设置编码规则?

But I don't want to disable the Too Many Lines Hint completely. What I want to do is to configure the IDE to allow 100 lines instead of 10. Is there a way to set the coding rules?

推荐答案

这很简单,我敢打赌您会为解决方案而笑.默认的NetBeans首选项窗口只是根据窗口大小隐藏该选项.只需将窗口拉宽即可,您会发现实际上有一个输入可以将默认值从10更改为您想要的任何值:)

It's quite simple, and I bet you'll laugh about the solution. The default NetBeans Preferences window just hides the option based on window size. Just stretch out the window widely and you'll see that there's actually a input to change the default value from 10 to whatever you want :)

这篇关于如何在NetBeans 7.4中配置PHP编码规则的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆