Background/Situation
When working with .razor files in Rider, some users may observe that formatting removes the space before the /> closing tag in empty elements, which is not the desired behavior in certain scenarios.
Question
How can the settings in Rider be configured to ensure that a space is maintained before the /> closing tag in a .razor file?
Answer
To configure Rider to maintain the space before the /> closing tag in empty tags:
- Open Rider Settings | Editor | Code Style | HTML | Other tab.
- Enable the option labeled "In empty tag":
Once this option is enabled, Rider will preserve the space before the /> closing tag when formatting the code.
Comments
0 comments
Please sign in to leave a comment.