Skip to content

Commit d0ee4dd

Browse files
committed
updated README.md
1 parent 7c5e197 commit d0ee4dd

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ or use the "Install" button on the [Plugin Marketplace website](http://plugins.j
99
<img src="https://raw.github.com/dkandalov/live-plugin/master/screenshots/live-plugin-demo.gif" alt="demo" title="demo" align="middle"/>
1010

1111

12+
## Table of Contents
13+
- [Why?](#why)
14+
- [Examples](#examples)
15+
- [Getting started](#getting-started)
16+
- [How does LivePlugin work?](#how-does-liveplugin-work)
17+
- [Some practical use cases](#some-practical-use-cases)
18+
- [More examples](#more-examples)
19+
- [Similar plugins](#similar-plugins)
20+
- [Contributing](#contributing)
21+
22+
1223
## Why?
1324
- **Minimal setup** — no need to set up a separate project for plugin development
1425
- **Fast feedback loop** — plugins are (re)loaded in the same JVM instance as IDE without restart
@@ -29,7 +40,7 @@ import liveplugin.*
2940
// Action to insert a new line above the current line.
3041
// Based on this post https://martinfowler.com/bliki/InternalReprogrammability.html
3142
// Note that there is also built-in "Start New Line Before Current" action (ctrl+alt+enter).
32-
registerAction(id = "Insert New Line Above", keyStroke = "ctrl alt shift ENTER") { event ->
43+
registerAction(id = "Insert New Line Above", keyStroke = "ctrl alt shift ENTER") { event: AnActionEvent ->
3344
val project = event.project ?: return@registerAction
3445
val editor = event.editor ?: return@registerAction
3546
executeCommand(editor.document, project) { document ->

0 commit comments

Comments
 (0)