A Visual Studio Code extension that automatically fills Java method call arguments based on parameter names.
- Auto-fill method arguments with parameter names
- Integration with VS Code code completion
- Keyboard shortcut support (Ctrl+Alt+O / Cmd+Alt+O)
- Context menu integration
- Works with Red Hat Java Language Support for better parameter resolution
- Open a Java source file
- Place the cursor inside a method call (between the parentheses)
- Press
Ctrl+Alt+O(Windows/Linux) orCmd+Alt+O(macOS) - The method arguments will be filled with parameter names
- Open a Java source file
- Right-click inside a method call
- Select tlcsdm → Fill Method Arguments
- Open a Java source file
- Place the cursor inside a method call
- Open Command Palette (
Ctrl+Shift+P/Cmd+Shift+P) - Search for "Fill Method Arguments"
- Press Enter
- Open a Java source file
- Type a method call and the opening parenthesis
- The completion list will show "Fill all arguments" option
- Select it to insert all parameter names as arguments
Before:
public void example() {
someMethod(|); // cursor here
}After pressing Ctrl+Alt+O:
public void example() {
someMethod(param1, param2, param3);
}Configure the behavior through VS Code settings:
| Setting | Description | Default |
|---|---|---|
tlcsdm.autofill.enableCompletion |
Enable argument suggestions in code completion | true |
tlcsdm.autofill.useParameterNames |
Use parameter names as argument suggestions when available | true |
tlcsdm.autofill.fallbackToTypeName |
Use type names as fallback when parameter names are not available | true |
- For best results, install the Language Support for Java(TM) by Red Hat extension
- Open VS Code
- Go to Extensions (
Ctrl+Shift+X) - Search for "Tlcsdm Java Autofill Arguments"
- Click Install
- Download the
.vsixfile from Releases - In VS Code, open Command Palette (
Ctrl+Shift+P) - Search for "Extensions: Install from VSIX..."
- Select the downloaded
.vsixfile
Download from Jenkins
This project uses TypeScript and npm (Node.js 22).
# Install dependencies
npm install
# Compile
npm run compile
# Watch mode (for development)
npm run watch
# Lint
npm run lint
# Package
npx @vscode/vsce package
# Test
npm run test- eclipse-autofill-arguments - The Eclipse version of this plugin
This project is licensed under the MIT License - see the LICENSE file for details.