Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 99112

Write a custom snippet output above the current line in Visual Studio Code

$
0
0

Is it possible to write the output of snippet to the line above the current line? I'm trying to create a snippet where you select an element name from csharp file and it inserts a Summary section above the element.

Snippet:

"CSharpSummarySelected": {
    "prefix": "c#-summary-selected",
    "body": [
        "/// <summary>",
        "/// ${1:$TM_SELECTED_TEXT}",
        "/// </summary>",
        "/// <returns>${2:returns}</returns>"
    ],
    "description": "Inserts Summary for component with selected text as name in C# files"
}

Viewing all articles
Browse latest Browse all 99112

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>