eclipse代码格式化,换行宽度设置 ctrl+shift+f

java---code style ---formatter

首先新建一个,如MyStyle。因为eclipse自带的不能编辑

编辑,在tab的Line Wrapping设置 最大的line width 即可。默认为80.这样以后代码自动格式化时不会给换行了。

 

详细说明:

Eclipse中设置代码缩进为空格缩进  https://blog.csdn.net/moonsun_523/article/details/48850649

Eclipse 默认设置的换行长度 https://blog.csdn.net/qq_28333753/article/details/66971607

 

posted on 2018-11-11 15:03  小石头小祖宗  阅读(38)  评论(0)    收藏  举报  来源

导航