Skip to content

Show/Hide Whitespace Characters in VS Code

show or hide whitespace characters in vs code

Do you know how many whitespace characters are hiding in your file? 🕵️‍♀️

Let’s find out!

Go to View -> Appearance and check Render Whitespace.

🎥 Want to watch a video to supplement your reading? Check this out:


To have more control over the display of the whitespace characters, press CTRL + SHIFT + P and open the current profile settings JSON file.

editor.renderWhitespace setting can hold 4 different values:

  • all – displays all the whitespace characters
  • none – don’t show them
  • boundary – displays whitespace characters except for single spaces between words
  • selection – displays whitespace characters only on selected text
  • trailing – displays only trailing whitespace characters (at the end of the line)

Happy coding 😊

Let me know what you think about this article in the comments section below.

If you find this article helpful, please share it with others and subscribe to the blog to support me, and receive a bi-monthly-ish e-mail notification on my latest articles.