From 6c7c12803b3c17027309071a749939e0c8bb476c Mon Sep 17 00:00:00 2001 From: Chimrod <> Date: Sun, 14 Jan 2024 14:19:29 +0100 Subject: Documentation update --- documentation/vscode.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 documentation/vscode.md (limited to 'documentation') diff --git a/documentation/vscode.md b/documentation/vscode.md new file mode 100644 index 0000000..cbc0370 --- /dev/null +++ b/documentation/vscode.md @@ -0,0 +1,32 @@ +# VSCode integration + +`tasks.json` vscode task to run the parser on current file: + +``` +{ + "label": "QSP Parser", + "type": "shell", + "command": ".\\tools\\Parser\\qsp_parser.exe ${file}", + "presentation": { + "clear": true, + "focus": false, + "showReuseMessage": false, + "panel": "shared", + "reveal": "silent" + } +} +``` + +and a `settings.json` part that runs said task when you save the file + +``` +"triggerTaskOnSave.tasks": { + "QSP Parser": [ + "*.qsrc" + ] +} +``` + +(requires Trigger Task on Save extension) +https://marketplace.visualstudio.com/items?itemName=Gruntfuggly.triggertaskonsave + -- cgit v1.2.3