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}
}

  

 

上一篇:.Net Core 后台 + Apisix 网关 解决跨域访问Cors问题


下一篇:LeetCode-472 连接词