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
- Open a
.javafile. - Declare a variable, e.g.
User user = new User(); - A generate all setter call CodeLens appears above the line. Click it.
- All setter calls on
userare 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.