IDEA配置leetcode editor本地调试模板

配置路径

idea -> Setting -> Tools -> LeetCode Plugin

CodeFileName:

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

CodeTemplate:

${question.content}
package leetcode.editor.cn;
//Java:${question.title}
public class P${question.frontendQuestionId}$!velocityTool.camelCaseName(${question.titleSlug}){
    public static void main(String[] args) {
        Solution solution = new P$!{question.frontendQuestionId}$!velocityTool.camelCaseName(${question.titleSlug})().new Solution();
        // TO TEST
    }
    ${question.code}
}

打开CusTom Template(没打开不能生效)

问题

后面的内容我不清楚是我配置有问题还是怎么,运行时出现这样的问题,如果没问题就不用管

文件配置

  1. 我重新新建了一个存放力扣代码的目录“E:\Code\LeeCode”
  2. idea -> Setting -> Tools -> LeetCode Plugin下的                                                                     修改为代码路径
  3. 通过idea打开,在目录下创建leetcode.editor.cn的子包
  4. 右击我的主目录(即LeetCode),操作如图,设置为Source Root

成功实现断点调试

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值