Gulzar
Gulzar

Reputation: 27974

How to strikethrough in PyCharm comments?

JetBrains' doc claims that

Strikethrough | ~~Never mind~~ | Never mind

is supported.

However, it doesn't work.

enter image description here

What am I missing?


EDIT:

It appears I read the wrong docs, for markdown files.

I am still looking for strikethrough in comments.

Upvotes: 2

Views: 1712

Answers (1)

Carcigenicate
Carcigenicate

Reputation: 45760

You can kind-of achieve what you want. Go into the settings and search for TODO. You'll find a "TODO" menu. You can click the + to add another pattern rule:

enter image description here

Now, any line that begins with strike will be stricken-out in red:

enter image description here

I believe this is as good as you'll be able to get.

Notes:

  • Yes, the strike line is very faint. I don't know if there's a way of boldening it.
  • You must restart Pycharm after creating the rule for it to work.
  • I do not know what \b and .* are for. Skip whitespace when pattern matching? That may be regex, and I'm awful with regex.

Upvotes: 3

Related Questions