There are several extensions for writing notes inside VS Code, but all are either too complex, or not working at all. I wanted something simple, a place to write a short reminder for myself, or store a piece of text or code that will be useful later.
The notes are persisted even if you close VS Code or switch to another workspace.
You can also look at the source code on GitHub.