一:插件中心安装
二:配置
- 模板代码文件名(生成随机类名):
$!velocityTool.camelCaseName(${question.titleSlug})
- 模板代码格式配置:
package leetcode.editor.cn;
${question.content}
public class $!velocityTool.camelCaseName(${question.titleSlug}){
public static void main(String[] args) {
Solution solution = new $!velocityTool.camelCaseName(${question.titleSlug})().new Solution();
}
${question.code}
}