Skip to content

Instantly share code, notes, and snippets.

@kontext-e
kontext-e / ParameterNameGenerator
Last active December 5, 2019 12:33
Plugin for IntelliJ LivePlugin; adds a new intention for generating call parameters based on the parameters of the called method
// Usage:
// Install LivePlugin http://plugins.jetbrains.com/plugin/7282
// Install this plugin into LivePlugin and run it
// In source code, create a method or constructor call and place the cursor into the empty braces
// Open the intentions drop down menu and select the "Create variables for method call parameters"
import com.intellij.codeInsight.intention.PsiElementBaseIntentionAction
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.editor.Document
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiCallExpression