← All Tools

VS Code Snippet Generator

Convert code into VS Code custom snippets with tab stops and placeholders

Snippet Details

Code Template

Paste your code below. Use the buttons to insert tab stops and placeholders, or type them directly.

Insert:
Variables: $TM_FILENAME $TM_FILENAME_BASE $TM_DIRECTORY $CLIPBOARD $TM_SELECTED_TEXT $CURRENT_YEAR $CURRENT_MONTH $CURRENT_DATE $UUID $LINE_COMMENT $BLOCK_COMMENT_START $BLOCK_COMMENT_END

Generated Snippet JSON

Examples

Tab Stop Reference

$1, $2, $3...Tab stops — cursor moves through them in order $0Final cursor position after all tab stops ${1:default}Tab stop with default placeholder text ${1|a,b,c|}Tab stop with dropdown choices $TM_FILENAMECurrent file name with extension $CLIPBOARDContents of the clipboard ${TM_SELECTED_TEXT}Currently selected text \\$Escaped dollar sign (literal $)
Copied!