IntelliJ IDEA 2021.1 Help

Generate toString() dialog

Code | Generate - toString()

ItemDescription
TemplateClick this drop-down list to choose the template to use.
SettingsClick this button to show toString() Generation Settings dialog and set up the behavior and templates of the Generate toString() function.
Toolbar
the Sort Alphabetically buttonClick this button to represent the fields in ascending or descending alphabetical order.
Icons file types java classClick this button to show classes.
Icons actions expandallClick this button to expand all class nodes.
Icons actions collapseallClick 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: 08 March 2021