Couldn’t find a print option under file.
Since PlatformIO is a plugin for the Visual Studio Code editor, the right place is to ask VSCode devs to add a
As you can see, VSCode is incapable of printing its editor content by itself: https://github.com/microsoft/vscode/issues/5953
However, the accepted solution here is to use a third-party extension PrintCode with which you can print. Weird world.
Perfect!! Thanks for the replies.