Wow - this is more intricate than I expected. I just assumed I had failed to select a correct option somewhere.
No, this isn't an option, there is no option to "hide" the content of the editor. This would be a bug.
Well, come to think of it, there is one possibility.
Tools > Options > Editor > General: "Scroll past end of file".
If then the editor (for some reason) was scrolled to the very bottom, then you would
- only see ONE SINGLE line of the file.
- And that line would be at the very top of the editor.
- And if that line was empty, then there would only be the line number for it
- Which could be just a small dot, depending on gutter and caret settings
You would note that the vertical scroll bar has to be at the very be at the very bottom.
Otherwise, I assume
but (maybe 10% of the time) just see a blank.
means
- the area for the text has the normal text background color (white / or black if you choose a dark theme)
- the gutter (on the left side) has it's normal color (e.g. grey)
- but does not show anything on it, no line numbers (not even small dots)
- the overview gutter (right side / if enabled in options) is present, but empty
- the scroll bar is present (if the file would require it).
If it happens please take note of
- Does the file has enough lines that it would need scrolling?
- Does it happen to units that have a form? (only those with form, only those without, or both)
- What does the status bar (at the bottom) show?
And in any case, please attach your editor options. editoroptions.xml from "primary config path" (see menu view > ide internals > about ide)