Add a template in "C source file"
Answered
hey, i want to create a template for C file. As soon as i create a new file it should print this on the screen
"#include <stdio.h>
int main (){
}"
but when I'm writing "#include<stdio,h> in the template. it is just showing me <stdio.h> without #include. IS there any way so i can get it properly.
Please sign in to leave a comment.
Hello!
File and code templates are written in the Velocity Template Language (VTL) - https://www.jetbrains.com/help/clion/using-file-and-code-templates.html#syntax.
Please see how it's done for the "C++ Class" file template in File | Settings | Editor | File and Code Templates.