G

GenerateToString

JetBrains

davsclaus · v—

Adds a new action 'toString()' in the generate menu (alt + ins). The action generates a toString() method that dumps the classes fields. Java body code is generated using Velocity Macro and you can change this to fit your needs. The plugin has it's own settings (ctrl + alt + s). Full documentation included (Click hyperlink from Settings).

Editor
Downloads
9K
8 952
Rating
4.1 ★
6 ratings
Category
JetBrains Marketplace
Collected
2026-11-04
weekly snapshot

Rating distribution

4.1 ★ 6 ratings
5★ 83.3%
3★ 16.7%

Reviews 8

★★★★★ Mark Vedder 2008-01-09

Easy to see why its the #2 downloaded plug-in: 1) Well written; 2) provides necessary functionality that is surprisingly missing from IDEA; 3) easy to configure with great default templates 4) *Amazing* documentation that should be the standard that all other plug-ins should aim for. I wholeheartedly agree with other reviewers that this plug-in should be included with the standard IDEA...

★★★★★ Michael Parmeley 2007-05-23

Essential plugin. Should just be in IntelliJ itself, but not sure it could be done any better than this plugin does it. Very configurable with Velocity if you don't like the way it generates the code (although it offers several pre-built Velocity templates)

★★★★★ salient1 2006-12-12

Must have plugin!

★★★★★ M. J. Milicevic 2006-04-16

agree, this should be included into Idea IDE

★★★★★ fbellomi 2006-04-16

+1 for adding it to the standard distribution

★★★★★ leaklea 2006-04-16

The default macro is ugly but this plugin saved me lots of redundant code. I wonder if it's a better solution to introspect values at runtime, though, because a generated toString method adds overhead for changing a class (like by adding a new field).

★★★★★ Roger Pack 2015-05-06

For followers, on mac normal Intellij insert menu is "ctrl+n"

★★★★★ Vojtěch Krása 2014-07-31

It seems that this project needs a new maintainer..

Similar in “Editor”