1.下载路径
1.1通过idea的插件市场
1.2通过作者的github下载插件进行idea的本地安装
https://github.com/shuzijun/leetcode-editor
保存好下载下来的插件,在下面进行导入,不要导错了,那个压缩包解压完里面有很多插件,我们需要的是【Leetcode Editor】
2.配置
附上我的配置
CodeFileName
Soultion${question.frontendQuestionId}
Code Template
${question.content}
/**
* @author sanshisi
*/
package leetcode.editor.cn;
public class Soultion${question.frontendQuestionId} {
public static void main(String[] args) {
Solution solution = new Soultion${question.frontendQuestionId}().new Solution();
}
${question.code}
}
3.如何使用
点击刷新即可
之后双击题目就可开始刷题了