Add language to Markdown code blocks in VS Code

19 October 2021

You have (please ignore the two backslashes here):

\```
print(2*3)
\```

You want:

\```python
print(2*3)
\```

Find/replace in VS Code, hit .* to turn on regex mode

In the find box:

^$\n```

In the replace box:

\n```python

Looks like:

png