From 22390f74aa011d1084cc56fb470e3613d340b8a0 Mon Sep 17 00:00:00 2001 From: Nate Bross Date: Fri, 15 Sep 2023 11:55:43 -0500 Subject: [PATCH] add formatting task and cli tool --- .config/dotnet-tools.json | 12 ++++++++++++ .vscode/tasks.json | 6 ++++++ 2 files changed, 18 insertions(+) create mode 100644 .config/dotnet-tools.json diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json new file mode 100644 index 0000000..aeca3be --- /dev/null +++ b/.config/dotnet-tools.json @@ -0,0 +1,12 @@ +{ + "version": 1, + "isRoot": true, + "tools": { + "xamlstyler.console": { + "version": "3.2206.4", + "commands": [ + "xstyler" + ] + } + } +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 1233377..33dbe82 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -36,6 +36,12 @@ "${workspaceFolder}/SharpFM.sln" ], "problemMatcher": "$msCompile" + }, + { + "label": "xstyler", + "type": "shell", + "command": "dotnet xstyler -f ${file} --ignore", + "problemMatcher": [] } ] } \ No newline at end of file