简体   繁体   中英

How to enable String.format template for automatic toString() generation in IntelliJ Java?

As above, how to enable toString() automatic generation in ' String.format ' style in IntelliJ IDEA? (Java language)

I was looking for templates but can't find any, no answer in jetbrains docs as well.

代码>插入实时模板,其快捷方式是CTRL + J.

Sorry but's not the answer for my question. I ment automatic generation of toString() for fields with 'String.format' formatting. So I need to enable it in intelliJ as in the picture. Or i just don't understand how to generate them with live template...

生成toString step1

选择模板第2步

In template section i don't have String.format template and i need to add it. In eclipse it's in default but here not.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM