Home > Software design >  What shortcut can I use for comments in Xamarin - xaml?
What shortcut can I use for comments in Xamarin - xaml?

Time:03-29

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  -->

CodePudding user response:

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

CodePudding user response:

I've been using Ctrl K C for Commenting and for Uncommenting Ctrl K U

  • Related