java idea leetcode配置
TemplatePath: ${your project parent dir}\${your project name}\src\main\java\com\${your name}
Code FileName: Item$!velocityTool.leftPadZeros(${question.frontendQuestionId},4)$!velocityTool.camelCaseName(${question.titleSlug})
Code Template:
package com.${your name}.leetcode.editor.cn;
/**
* ${question.title}
* @author ${your name}
* @since $!velocityTool.date()
**/
${question.content}
public class Item$!velocityTool.leftPadZeros(${question.frontendQuestionId},4)$!velocityTool.camelCaseName(${question.titleSlug}){
public static void main(String[] args) {
Solution solution = new Item$!velocityTool.leftPadZeros(${question.frontendQuestionId},4)$!velocityTool.camelCaseName(${question.titleSlug})().new Solution();
}
${question.code}
}

浙公网安备 33010602011771号