visual-studio-codestrikethrough

how to add strike through without any third-party extension in vs code?


I wanted something like todo, to track progress, and i know about built in TODO: but now i wanted to strikethrough it, and when i try built in solutions (provided online) its not seem to be working.

I tried some solutions like:

~~strikethrough~~

but it's not working, I've attached the screenshot for ref.screenshot


Solution

  • If you're writing in a Markdown file (.md)

    ~~crossed out text~~

    will strike through the text. But if you’re trying to do this in code comments, like in .go, .js, etc, VS Code won’t show strikethrough there. It’s not built for that. You will need another extension for that.