File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,17 @@ or use the "Install" button on the [Plugin Marketplace website](http://plugins.j
9
9
<img src =" https://raw.github.com/dkandalov/live-plugin/master/screenshots/live-plugin-demo.gif " alt =" demo " title =" demo " align =" middle " />
10
10
11
11
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
+
12
23
## Why?
13
24
- ** Minimal setup** — no need to set up a separate project for plugin development
14
25
- ** Fast feedback loop** — plugins are (re)loaded in the same JVM instance as IDE without restart
@@ -29,7 +40,7 @@ import liveplugin.*
29
40
// Action to insert a new line above the current line.
30
41
// Based on this post https://martinfowler.com/bliki/InternalReprogrammability.html
31
42
// 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 ->
33
44
val project = event.project ? : return @registerAction
34
45
val editor = event.editor ? : return @registerAction
35
46
executeCommand(editor.document, project) { document ->
You can’t perform that action at this time.
0 commit comments