How to toggle a line comment in xaml for C# WPF in visual studio 2019


I have Ctrl+Q set to toggle line comments globally in my C# project.

It does works when I’m editing .cs file.

However, it does not work when editing xaml files

It does work if I press the comment and uncomment buttons

But not with the hotkey I set.

Is there a different command I should use for toggling the xaml comment wrapper with a single hotkey?

Source: Visual Studio Questions