I am writing text using the source editor in Rstudio (2022.07.1) in an Rmarkdown (2.17) document. I sometimes switch to the Visual editor to create a table or to add a reference. Visual editor then adds line breaks in my text which I don't want.
I went to the settings and even with 'Soft-wrap R Markdown files' and 'Automatic text wrapping (line breaks)' unselected, it still does it.