Virtual space only for cursor on new line
I have
Code Style which prevent trailing spaces
- csproj has TreatWarningsAsErrors = true
- On Save options “Remove trailing spaces” and “Keep trailing spaces on caret line” enabled
And it should work fine, but sooooo noisy before save. Is it possible to Virtual Space only for new lines while user didn't start typing?

Please sign in to leave a comment.
It seems the error is from the Roslyn Analyzer you configured.
How do you add the code style of “prevent trailing spaces”? In EditorConfig or other inspection plugins?
In Settings | Editor | Inspection Settings | Roslyn, you can configure the corresponding analyzer severity. It will be only applied on Rider's static analysis output but will not impact how MSBuild executes analyzers.
In Roslyn it's not an error. It's expected behavior to not build code which looks wrong. Currently, the severity changed from error to warning in Rider.
But while “Remove trailing spaces on save” enabled, and I just started new line it looks very inconvenient to see errors all the time. And all the time I make spaces between blocks it also covered as errors.
All new lines always marked as errors even if Rider will correct it in 15 seconds (with auto-save)
It would be nice to put the cursor into virtual space while the user didn't start typing in this case to avoid useless alarms and reduce stress
IDE inspection results should always show the same indicators.
Could you share a sample solution for this problem? It could be helpful to understand how it works.
Please upload the file to our server and share the ID.