File tree 3 files changed +30
-0
lines changed
3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,14 @@ LessThan(expected := 0, actual := 0);
58
58
GreaterThan(expected := 0, actual := 0);
59
59
```
60
60
61
+ ## Code actions
62
+
63
+ ### Increment / Decrement
64
+
65
+ ![ increment] ( doc/img/inc.gif )
66
+
67
+ Select the variable and enter the prefixes: ** increment** or ** decrement**
68
+
61
69
## Surround with
62
70
63
71
![ surround] ( doc/img/surround.gif )
Original file line number Diff line number Diff line change
1
+ {
2
+ "increment_variable" : {
3
+ "scope" : " st" ,
4
+ "prefix" : [
5
+ " increment"
6
+ ],
7
+ "body" : [
8
+ " ${TM_SELECTED_TEXT} := ${TM_SELECTED_TEXT} + ${1:1};"
9
+ ],
10
+ "description" : " Increment variable"
11
+ },
12
+ "decrement_variable" : {
13
+ "scope" : " st" ,
14
+ "prefix" : [
15
+ " decrement"
16
+ ],
17
+ "body" : [
18
+ " ${TM_SELECTED_TEXT} := ${TM_SELECTED_TEXT} - ${1:1};"
19
+ ],
20
+ "description" : " Decrement variable"
21
+ }
22
+ }
You can’t perform that action at this time.
0 commit comments