You currently can fold/unfold inline display of document properties with a hotkey. There is, however, no possibility to toggle display/hide of the properties.
Another way to go about this is to hide the properties on top of the document, and instead use the Core properties plugin to display properties. That pane can be shown/focused using a hotkey. An advantage can be that properties remain visible also while scrolling through the note.
It shouldn’t be that hard to use a CSS snippet to hide the properties, and I believe there is at least one plugin allowing you to toggle various CSS snippets on/off. So it should be doable to do this even if there is no specific command to do so in the default setup.
Found ways to remove properties via CSS only in read mode. Are there any ways to remove properties in edit mode as well? I’m going to just set the hotkey to on/off later on
The first selector, .metadata-container, refers to live preview, and the other to source mode. This kind of messes with the line numbering if you got that enabled, just so that you’re forewarned on that issue.