'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 1:[1]
Try Ctrl + K, Ctrl + C. On windows, this is the shortcut for commenting code both for C# and XAML.
Solution 2:[2]
I've been using Ctrl + K + C for Commenting and for Uncommenting Ctrl + K + U
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Gaurav Katdare |
| Solution 2 | Raees_21 |
