为 NetBeans IDE 7.3 RC2 使用 PHP 插件 v1.47.1。
我喜欢如下评论我的 if 和 elseif:
/*
* If this is the case, then do that.
*/
if (*condition1*) {
// do some stuff.
}
/*
* Otherwise, if this is the case, do the other thing.
*/
elseif (*condition2*) {
// do some other stuff
}
/*
* Finally, if neither of these is the case, then do something
* totally different.
*/
else {
// do something totally different.
}
但是当我点击 -- 自动格式化时,我得到以下信息:
/*
* If this is the case, then do that.
*/
if (*condition1*) {
// do some stuff.
}
/*
* Otherwise, if this is the case, do the other thing.
*/ elseif (*condition2*) {
// do some other stuff
}
/*
* Finally, if neither of these is the case, then do something
* totally different.
*/ else {
// do something totally different.
}
我可以处理它,但我希望能够改变它。我查看了工具 -> 选项 -> 编辑器 -> 格式,但没有看到任何关于将“elseif”或“else”放在新行上的信息。