idea使用leecode插件

一、下载安装
点击File->Setting->Plugins,搜索leetcode再点击install进行下载。

下载完成后重启idea,右下角会有leetcode菜单。

二、配置
1.点击File->Settings->Tools->leetcode plugin,如图:

2.自定义模板配置
下面介绍我使用的配置模板为:

P$!{question.frontendQuestionId}_$!velocityTool.camelCaseName(${question.titleSlug}) 
package leetcode.editor.cn;

${question.content}
/**
 * ${question.title}
 *
 * @author zhaohanqing
 */
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();
        
    }

    ${question.code}
}

posted @   经典鸡翅  阅读(1395)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 周边上新:园子的第一款马克杯温暖上架
历史上的今天:
2020-03-24 Java线程池详解及常用方法
点击右上角即可分享
微信分享提示