eclipse ctrl+shift+F设置最大行

最近想给我的eclipse设置format(ctrl+shift+F)自动换行的默认最大行,

找到设置点:windows--preferences--java--code style--formatter--edit--line wrapping--maximum line width

修改最大行提示:this is a built-in profile,change the name to create a new profile(eclipse控制内置的配置文件不允许修改)

刚开始不知道要去哪儿创建一个新文件,后来发现设置界面的profile name 就能直接改名(或者直接new一个新的配置文件),然后设置一下想要的最大行宽,然后点击应用,就能生成一个新的配置。

看到有朋友遇到过同样的问题,就提醒大家一下,希望有帮助

猜你喜欢

转载自shenhaocric.iteye.com/blog/1693543
今日推荐