【IDEA插件】leetcode plugin配置
URL选项:可以选择是国内还是国外的站点。
LoginName:注册的用户名
Password:密码
TemFilePath:项目存放的路径,可以自己设定。说明:实际文件会放到TempFilePath + ‘leetcode\editor\cn’ 下面
Custom Template:自定义模板,如果不选中CodeTemplatew保存会丢失
English Content:是否英文模板
CodeFileName (代码文件名字)
$!velocityTool.camelCaseName(${question.titleSlug})
CodeTemplate (Code初始化模板)
package com.fwpsl.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}
}