You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then in the keybindings.json, you can map the task to a key combination:
{
"key": "ctrl+shift+a", // This can be your own keybinding of choice"command": "workbench.action.tasks.runTask",
"args": "xstyler",
"when": "resourceExtname == '.xaml'"
}
When the task runs, it also saves the file, so you can also use it as an alternative key binding to save XAML files.
For non-Windows OS, change the command to include dotnet in the beginning.