Modify the default toString template for Java
已回答
I'm having a difficult time trying to find the toString template that is used for generating the toString code for a class. I have looked in different locations like Settings → Editor → Code Style → Java and then looked under the Code Generation tab. I also looked at Settings → Editor → File and Code Templates and couldn't locate the template. Is it possible to change this template?
Version:
IntelliJ IDEA 2023.3.5 (Ultimate Edition)
Build #IU-233.14808.21, built on March 12, 2024
请先登录再写评论。
Hi Tyler,
Please click the Settings button in the Generate toString() dialog when you invoke the menu Code | Generate | toString(), more info please check this page: https://www.jetbrains.com/help/idea/2023.3/generate-tostring-settings-dialog.html