Friday, 12 February 2021

DevOps Snack: Keyboard Shortcuts YAML editor

Case
How do I comment out a block of code in the YAML editor of Azure DevOps? Is there a keyboard shortcut to toggle line comments?
Toggle line comments






Solution
Yes you can use the same keyboard shortcut as in Visual Studio:
Comment: CTRL+K, CRTL+C 
Uncomment:  CTRL+K, CRTL+U 

And there is also an easier shortcut to switch between comment and uncomment:
CRLT+/
Press CTRL + / to (un)comment a block of code




















More commands can be found by pressing F1. What's your favorite keyboard shortcut. Let us know in in the comments.
Press F1 to see all Keyboard Shortcuts





















No comments:

Post a comment