Saturday 2 June 2018

Is YAML support block comments?

YAML doesn’t support block comments.

If you want to comment multiple lines, then you should use multiple # symbols.

For example, to comment three lines, we require 3 # symbols.

#   Failure never overtake me
#   if my determination to succeed is
#   strong enough.

How can I comment multiple yaml lines efficiently?
You can use Eclipse yedit plugin to comment multiple lines. My previous post, explains the installation procedure of yedit plugin.

Open the yaml file in eclipse.

Select the lines that you are interested to comment.



Press Ctrl + Shift + c to comment the lines.



Previous                                                 Next                                                 Home

No comments:

Post a Comment