- Notifications
You must be signed in to change notification settings - Fork668
Open
Description
在目录 shengchen.vscode-leetcode-0.15.7\node_modules\vsc-leetcode-cli\templates 下
我改变了templates下的detailed.tpl,为了避免重复
像这样
${comment.singleLine} @lc code=start#include<vector>#include<list>#include<iostream>#include<map>#include<stack>#include<bitset>#include<string>#include<algorithm>${code}${comment.singleLine} @lc code=endintmain(){ Solution s;//std::cout<<s<<std::endl;return0;}
可是当我再次打开vscode时,它又变回了原样。
(是否可以添加自定义模板功能)
像这样
"leetcode.filePath": { ... "cpp": { ... "filetemplate":"my_cpp_template" } },