comment block
I would like a feature to place a hilited block of code into a comment block /**/ - rather than having inline comments (helps when capturing the running sql in monitoring tools)
4
votes
Anonymous
shared this idea
The latest version of SQL Prompt has the $SELECTEDTEXT$ placeholder which allows you to use the current text selection in your snippets. So to surround a selection with a comment block you could create a snippet similar to:
/*
$SELECTEDTEXT$
*/
-
DataDog commented
He is talking about "Comment selection" the SSMS built-in always uses inline comments (--) as opposed to block comments (/**/)
-
I'm not sure I understand what you mean. Would you be able to elaborate?