This is a useful practice when you want to prevent invisible characters from being in your code without your consent. Especially when a snippet of code is copied from elsewhere (a website, for example).
Note : Some terms described below may vary depending on your publisher's language setting.
To do this, simply enter the editor settings through the Edit / Preferences menu or the keyboard shortcut CTRL +, .

Inthenavigationmenuontheleftsideofthepage,gototheEditortab.

ScrolldowntotheInvisibleCharacterSettingsandselecttheInvisibleDisplay:

Youcanstillcustomizethecharactersthatwillbedisplayedbychangingthefollowingsettings: