如果我想在IntelliJ中生成流畅的构建器,任何人都知道在哪里编辑用构建器替换构造函数功能?
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?
上面提到的功能将自动构建一个Builder模式对象使用通用的setAttribute命名约定,而不是我正在寻找的.attribute或.withAttribute的更流畅的命名模式。
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.
最终我希望能够改变设置/模板,用于呈现代码,类似于如何更改IntelliJ中各种其他自动生成代码的格式。
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.
推荐答案在'Generate Fluent interface'中安装插件
install plugn in 'Generate Fluent interface'
plugins.jetbrains/plugin/6141?pr=idea
更多推荐
IntelliJ中Fluent
发布评论