# Generate toString() dialog

`Code | Generate - toString()`

| Item | Description |
| --- | --- |
| Template | Click this drop-down list to choose the template to use. |
| Settings | Click this button to show [toString() Generation Settings dialog](generate-tostring-settings-dialog.html) and set up the behavior and templates of the Generate toString() function.  |
| Class members tree view |    Click the members to be included in the generated `toString()` method.     Press and hold `Shift` (Windows), `Shift` (macOS), `Shift` (IntelliJ IDEA Classic (macOS)), `Shift` (macOS System Shortcuts), `Shift` (XWin), `Shift` (GNOME), `Shift` (KDE), `Shift` (Emacs), `Shift` (Sublime Text), `Shift` (Sublime Text (macOS)), `Shift` (NetBeans), `Shift` (Visual Studio), `Shift` (Visual Studio (macOS)), `Shift` (Eclipse), `Shift` (Eclipse (macOS)) to select multiple members.   |
| Insert @Override | If this checkbox is selected, the generated code is prepended with the annotation `@Override`. |
| OK | Click this button to generate the `toString()` method with the specified settings and close the dialog. |
| Select None | Click this button to generate the `toString()` method that consists of the method declaration and return statement only. |
| Cancel | Click this button to discard all changes and close the dialog. |

## How it works

* [Generate toString()](generating-code.html#generate-tostring)

