Netbeans:自动格式 - 防止变量赋值的空间格式 [英] Netbeans: Auto Format - Prevent Space Formatting on Variable Assignment

查看:130
本文介绍了Netbeans:自动格式 - 防止变量赋值的空间格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我更喜欢这样的格式分配:

  $ foo = $ bar; 
$ long_foo = $ bar;

而不是:

  $ foo = $ bar; 
$ long_foo = $ bar;

然而,Netbeans在使用自动格式时会使用后者。
任何人都知道如何解决这个问题?

解决方案

自这个问题发布至今已有3年但我认为是非常有用的,所以我应该回答这个问题。我找到了


I prefer formatting assignments like this:

$foo          = $bar;
$long_foo     = $bar;

instead of this:

$foo = $bar;
$long_foo = $bar;

However the latter is being used by Netbeans when using auto format. Anyone knows how to fix that?

解决方案

It's been 3 years since this question has been posted but I think it is very useful, so I should answer this question. I've found one website that it seems right to your question.

In Alignment category there are new properties for Group Multiline Alignment - Assignment and Array Initializer.

这篇关于Netbeans:自动格式 - 防止变量赋值的空间格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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