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}
}


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM