Skip to content

Instantly share code, notes, and snippets.

View ShreyashKore's full-sized avatar

Shreyash Kore ShreyashKore

View GitHub Profile
import com.intellij.openapi.diagnostic.Logger
import liveplugin.*
show("View Binding: ${project?.name}")
registerAction(id = "Replace ButterKnife", keyStroke = "ctrl shift H") { event: com.intellij.openapi.actionSystem.AnActionEvent ->
val project = event.project ?: return@registerAction
val editor = event.editor ?: return@registerAction
val logger = Logger.getInstance("HelloLogger")
// Document modifications must be done inside "commands" which will support undo/redo functionality.