Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>GenerateAllSetterNew to Visual Studio Code? Get it now.
GenerateAllSetter

GenerateAllSetter

bruce ge

|
2 installs
| (0) | Free
Generate all setter calls for a Java entity variable, similar to IntelliJ IDEA's GenerateAllSetter plugin.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

GenerateAllSetter

A VSCode extension that generates all setter calls for a Java entity variable in one click, inspired by the IntelliJ IDEA plugin of the same name.

Features

  • Detects Java variable declarations and provides a CodeLens above the line.
  • Click generate all setter call to insert all setXxx(...) invocations of the variable's type below the declaration.
  • Also shows a per-method CodeLens with the method's line count.

Requirements

  • VSCode ^1.72.0
  • The Language Support for Java by Red Hat extension (declared as an extensionDependencies, so it will be installed automatically).

Usage

  1. Open a .java file.
  2. Declare a variable, e.g. User user = new User();
  3. A generate all setter call CodeLens appears above the line. Click it.
  4. All setter calls on user are inserted on the following lines.

Known Issues

  • Detection relies on a regex over the line text, so unusual formatting may not be recognized.

Release Notes

0.0.1

Initial release.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft