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.75k stars 404 forks source link

Remove "Related Topics" from Question's content #606

Closed danielpaz6 closed 1 year ago

danielpaz6 commented 1 year ago

Desc Every question description ("Content" tab) at the bottom has a "Related Topics" section which to be honest reveal or give you significant hint on how to solve the problem.

In LeetCode web this section is hidden by default and you can choose whether or not if want to see it by pressing on it.

So my suggestion is to remove it completely, or make it hideable somehow (which should be a default) either by Leetcode settings or by a pressing button besides that.

shuzijun commented 1 year ago

Open Custom code template, replace ${question.content} with $question.content.replaceAll("Related\sTopics.*","") in CodeTemplate

danielpaz6 commented 1 year ago

It deletes it only from the code and not the description no? anyway It didn't work for me, wouldn't it remove the thumbs up/down as well?

By the way, maybe it could be a default? I think it should be

shuzijun commented 1 year ago
image image

Is that so? You can try the pro version. Sync to here in the future.

danielpaz6 commented 1 year ago

Oh is it a pro feature? I used the free one