Where are the settings to show a space
, tab
, paragraph
, CRLF
, etc. (extended) characters?
At the bottom right of the screen in VS Code there is a little button that says “LF” or “CRLF”: Click that button and change it to your preference. Voila, the file you are editing now has the correct line breaks.
Open any of Visual Studio's find windows and enter the regular expression above into the “Find what:” text box. Click the “Find Options” plus sign to expand the list of options. Check the last box “Use:” and choose “Regular expressions” from the drop down menu.
You can click on View and then Click on Command Palette or type Ctrl + Shift + P keyboard shortcut. Click on Toggle Render Whitespace. This option can be used to toggle Indentation dots in VSCode.
The following characters are interpreted as line breaks in Visual Studio: CR LF: Carriage return + line feed, Unicode characters 000D + 000A. LF: Line feed, Unicode character 000A. NEL: Next line, Unicode character 0085. LS: Line separator, Unicode character 2028.
Edit > Advanced > View White Space. The keyboard shortcut is CTRL+R, CTRL+W. The command is called Edit.ViewWhiteSpace
.
It works in all Visual Studio versions at least since Visual Studio 2010, the current one being Visual Studio 2019 (at time of writing). In Visual Studio 2013, you can also use CTRL+E, S or CTRL+E, CTRL+S.
By default, end of line markers are not visualized. This functionality is provided by the End of the Line extension.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With