IntelliJ IDEA 2017.3 Help

Generate toString() Dialog

Code | Generate - toString()

ItemDescription
TemplateClick this drop-down list to choose the template to use.
SettingsClick this button to show Generate toString() Settings Dialog and set up the behavior and templates of the Generate toString() function.
Toolbar
/help/img/idea/2017.3/sortAlphabetically.pngClick this button to represent the fields in ascending or descending alphabetical order.
classTypeJavaClassClick this button to show classes.
/help/img/idea/2017.3/expandAll.pngClick this button to expand all class nodes.
/help/img/idea/2017.3/collapseAll.pngClick this button to collapse all class nodes.
Class members tree viewClick the members to be included in the generated toString() method.
Insert @OverrideIf this checkbox is selected, the generated code is prepended with the annotation @Override.
OKClick this button to generate the toString() method with the specified settings and close the dialog.
Select NoneClick this button to generate the toString() method that consists of the method declaration and return statement only.
CancelClick this button to discard all changes and close the dialog.
Last modified: 11 October 2017

See Also