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.71k stars 400 forks source link

LCR题目生成类的文件名存在空格 #664

Open DoubleW2w opened 1 year ago

DoubleW2w commented 1 year ago

Describe the bug LCR 题目生成的 .java 文件名存在空格

To Reproduce Steps to reproduce the behavior:

  1. 打开插件
  2. 搜索068 image
  3. 双击生成对应文件 image

Software versions(Help -> About)

Additional 在插件配置中的,类名生成模板如下

public class Q$!{question.frontendQuestionId}$!velocityTool.camelCaseName(${question.titleSlug}) {}
shuzijun commented 1 year ago

搜索一下velocity replaceAll的语法或者使用VelocityTool.java把空格换成其他字符

yuhuoji commented 12 months ago

c++可以用这个 $!velocityTool.toPinyinAndTrims(${question.frontendQuestionId})

ah-smile commented 11 months ago

$!velocityTool.deleteWhitespace(${question.frontendQuestionId}) 删除字符串所有空格

STHxiao commented 10 months ago

$!velocityTool.deleteWhitespace($!velocityTool.camelCaseName(${question.titleSlug}))