先勾选上Custom Template
这一项,然后设置下面两项。
Code FileName:
P$!{question.frontendQuestionId}$!velocityTool.camelCaseName(${question.titleSlug})
这行代码后面注意不能有空格,从别人转载过来的代码有空格会出问题。
Code Template:
${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}
}
转载自IDEA使用LeetCode插件并调试本地样例_leetcodeeditor怎么打断点_HFish24的博客-CSDN博客