(defun yas-with-comment (str)
  (format "%s%s%s" comment-start str comment-end))

(defun yas-with-comment (str)
  (format "%s %s%s" comment-start str comment-end))

Set a whitespace between comment-start and comment
Set a whitespace between comment-start and comment

jlhg/yasnippet-snippets