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

How to make a snippet printf with \n in C (with vscode)

$
0
0

I have a question, how to make a snippet in vscode so when you type pr and it will develop a code like this printf("type here\n"); I tried this :

"prefix" : "pr",
    "body": ["printf(\"$1 \n \",$2)"]
},

But the output will be :

printf("",)


Viewing all articles
Browse latest Browse all 99124

Trending Articles