IntelliJ中Fluent-API Builder的实时模板 [英] Live Template for Fluent-API Builder in IntelliJ

查看:234
本文介绍了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'

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

这篇关于IntelliJ中Fluent-API Builder的实时模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆