Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ LessThan(expected := 0, actual := 0);
GreaterThan(expected := 0, actual := 0);
```

## Code actions

### Increment / Decrement

![increment](doc/img/inc.gif)

Select the variable and enter the prefixes: **increment** or **decrement**

## Surround with

![surround](doc/img/surround.gif)
Expand Down
Binary file added doc/img/inc.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions snippets/inc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"increment_variable": {
"scope": "st",
"prefix": [
"increment"
],
"body": [
"${TM_SELECTED_TEXT} := ${TM_SELECTED_TEXT} + ${1:1};"
],
"description": "Increment variable"
},
"decrement_variable": {
"scope": "st",
"prefix": [
"decrement"
],
"body": [
"${TM_SELECTED_TEXT} := ${TM_SELECTED_TEXT} - ${1:1};"
],
"description": "Decrement variable"
}
}