Search code examples
xamlxamarinxamarin.forms

What shortcut can I use for comments in Xamarin - xaml?


Note, I'm using Visual Studio 2022, on Windows.

Note2: I found CTRL + / in by googling, but it does not work.

I found a way to comment my code, but is there a keyboard shortcut for doing so?

For example, This is a comment from the code below?

      <Label Text="Ukupan iznos: " FontSize="30" Padding="0,2,0,0" FontAttributes="Bold" 
    VerticalOptions="Center"/>
   <!-- This is a comment  -->

Solution

  • Try Ctrl + K, Ctrl + C. On windows, this is the shortcut for commenting code both for C# and XAML.