Live Template for Fluent-API Builder in IntelliJ

六眼飞鱼酱① 提交于 2019-12-12 04:54:54

问题


If I wanted to generate a "fluent builder" in IntelliJ anyone know where to edit the live template that is used in the Replace Constructor with Builder feature?

The above mentioned feature will automatically build a Builder pattern object though with the common setAttribute naming convention instead of a more fluentlike naming pattern of .attribute or .withAttribute that I am looking for.

Ultimately I would like to just be able to change a setting / template that would be used in rendering the code similar as to how you can change the format of various other auto generated code within IntelliJ.


回答1:


install plugn in 'Generate Fluent interface'

http://plugins.jetbrains.com/plugin/6141?pr=idea



来源:https://stackoverflow.com/questions/25347294/live-template-for-fluent-api-builder-in-intellij

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