自用leetcode IDEA插件配置

文件名:

P$!{question.frontendQuestionId}$!velocityTool.camelCaseName(${question.titleSlug})

代码模版:

${question.content}

package leetcode.editor.cn;

//${question.title}

public class P${question.frontendQuestionId}_$!velocityTool.camelCaseName(${question.titleSlug}){
	 public static void main(String[] args) {
	 	 //Test
	 	 Solution solution = new P$!{question.frontendQuestionId}_$!velocityTool.camelCaseName(${question.titleSlug})().new Solution();
	 }
//leetcode code
	${question.code}
}

题目模板:

${question.title}	题目标题	示例:两数之和
${question.titleSlug}	题目标记	示例:two-sum
${question.frontendQuestionId}	题目编号
${question.content}	题目描述
${question.code}	题目代码
$!velocityTool.camelCaseName(str)	转换字符为大驼峰样式(开头字母大写)
$!velocityTool.smallCamelCaseName(str)	转换字符为小驼峰样式(开头字母小写)
$!velocityTool.snakeCaseName(str)	转换字符为蛇形样式
$!velocityTool.leftPadZeros(str,n)	在字符串的左边填充0,使字符串的长度至少为n
$!velocityTool.date()	获取当前时间

然后temp文件夹保存在/leetcode-java/src(要不重新配置JDK特别麻烦)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值