In VS Code, how can I hide the inline warning messages inside a file as highlighted below with white circles?

inline messages

Looks like you're using the Error Lens Extension

You can uninstall it completely, or disable messages in settings like this:

"errorLens.messageEnabled": false