Skip to content

Commit 9788629

Browse files
authored
Merge pull request #24 from simatic-ax/add_Sourround
Add sourround
2 parents 3646f93 + 2ac0818 commit 9788629

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ LessThan(expected := 0, actual := 0);
5858
GreaterThan(expected := 0, actual := 0);
5959
```
6060

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+
6169
## Surround with
6270

6371
![surround](doc/img/surround.gif)

doc/img/inc.gif

95.8 KB
Loading

snippets/inc.json

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
}

0 commit comments

Comments
 (0)