IntelliJ中Fluent

编程入门 行业动态 更新时间:2024-10-14 16:23:05
本文介绍了IntelliJ中Fluent-API Builder的实时模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

如果我想在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

本文发布于:2023-10-26 18:30:23,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1530995.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:IntelliJ   Fluent

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!