Skip to content

Commit

Permalink
Added: VSCode Strip Whitespace on Save
Browse files Browse the repository at this point in the history
Using `Trigger Task on Save` Extension
  • Loading branch information
Sewer56 committed Apr 21, 2024
1 parent 98f15ea commit ab69a2f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,5 +159,11 @@
"xsave",
"Yakuza",
"Yeppers"
]
],
// Using 'Trigger Task on Save' Extension
"triggerTaskOnSave.tasks": {
"Strip Whitespace": [
"docs/**/*.md"
],
}
}
18 changes: 18 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "Strip Whitespace",
"command": "python",
"args": [
"${workspaceFolder}/strip_whitespace.py",
"${file}"
],
"problemMatcher": [],
"presentation": {
"reveal": "never"
},
}
]
}

0 comments on commit ab69a2f

Please sign in to comment.