Auto-align “=” in assignments

依然范特西╮ 提交于 2019-11-27 22:25:39

PreferencesJavaCode StyleFormatter → goto Edit and check the Align fields in columns:

Tibi

If you want to be able to align assignments and not only field declarations, this plugin does an excellent job: OCDFormat.

It works in all text files, not only java.

You can use the Eclipse plugin columns4eclipse:

  • gratis
  • open source
  • I've tested it with Eclipse 4.3 x64 and 4.5 x64 on Windows 7 SP1 x64 Ultimate

EclipseFormatter solved this problem perfectly which supports align fields, assignments and variable declarations in columns.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!