shuzijun / leetcode-editor

Do Leetcode exercises in IDE, support leetcode.com and leetcode-cn.com, to meet the basic needs of doing exercises.Support theoretically: IntelliJ IDEA PhpStorm WebStorm PyCharm RubyMine AppCode CLion GoLand DataGrip Rider MPS Android Studio
https://plugins.jetbrains.com/plugin/12132-leetcode-editor
Apache License 2.0
3.7k stars 399 forks source link

请问如何将题目按照类型进行分类? #711

Open ghost opened 4 months ago

ghost commented 4 months ago

Desc

请问如何将题目按照类型进行分类?我试过在leetcode.editor.cn包下建立不同类型的子包,但是在将.java文件从leetcode.editor.cn包下移动到leetcode.editor.cn包中的子包后,该文件就成了一个普通的.java文件,无法Run Code 或者Submit

shuzijun commented 4 months ago

根据存储路径识别的是否为插件创建的文件,移动路径后无法识别。 参考自定义代码生成介绍,通过使用占位符配置CodeFileName来区分文件夹。例如${question.titleSlug}/${question.titleSlug},将会生成two-sum/two-sum.java路径的文件。但是现在没有题目类型,你需要根据自己的规则开发一个分类工具