Add a template in "C source file"

已回答

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.

0

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.

0

请先登录再写评论。