leetcode-editor icon indicating copy to clipboard operation
leetcode-editor copied to clipboard

关于模板中${question.content}的用法

Open yuanleyuanleyuan opened this issue 2 years ago • 5 comments

虽然现在每次手动改也不算麻烦,但是希望可以考虑支持一下这个

在使用${question.content}时,每行自动携带“//”,导致现在直接在文档注释中使用时如下: image

如果不带“//”,则可以做到如下效果,idea也可以缩起来看,比较清爽些 image image

yuanleyuanleyuan avatar Jul 14 '22 10:07 yuanleyuanleyuan

配置里开启多行注释

shuzijun avatar Jul 14 '22 10:07 shuzijun

配置里开启多行注释

多行和单行一样的问题,都无法适配在文档注释内,但是可以提出来单独自己算一个注释,也算清爽了,终于不用看一大片//了

ghost avatar Jul 14 '22 11:07 ghost

${question.xxx}只是一个占位符,在渲染时替换成对应内容,无法识别到外面的内容进行适配。 另一个解决方案是可以在外面对这个内容进行再次加工,例如在头部加入其他内容

/** 题目编号:${question.frontendQuestionId} $!velocityTool.substring(${question.content},3)

shuzijun avatar Jul 14 '22 12:07 shuzijun

image

配置里开启多行注释

请问//leetcode submit region begin 和 //leetcode submit region end 能自动去掉吗,或者像您示例里面那样是--begin-- --end--

shuaixiaomi avatar Jul 21 '22 02:07 shuaixiaomi

image

配置里开启多行注释

请问//leetcode submit region begin 和 //leetcode submit region end 能自动去掉吗,或者像您示例里面那样是--begin-- --end--

鼠标放上去,快捷键ctrl + -,就可以了

ghost avatar Jul 21 '22 02:07 ghost

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

github-actions[bot] avatar Aug 14 '22 05:08 github-actions[bot]