Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhpStorm showing space instead of  

Tags:

I am using PhpStorm 2016.2 with a project that uses blade templates. In my Blade templates I use the html encoded character  . PhpStorm shows   as a space in the editor, I would like it to show   unchanged.

What setting do I need to change?

like image 483
user3720435 Avatar asked Sep 10 '16 02:09

user3720435


People also ask

How do I show white space in IntelliJ?

To enable this feature in IntelliJ, you must open the Settings dialog ( Ctrl+Alt+S ) and navigate to the Editor | General | Appearance tab. In this tab you need to enable the Show whitespace option. In addition, you can individually enable/disable which whitespaces to show: leading, trailing or inner.

How do I change tab space in IntelliJ?

In IntelliJ IDEA, to convert existing tabs to spaces or vice versa, use File → Edit → Convert Indents → To Spaces (or To Tabs). The Reformat code shortcut Ctrl + Alt + L will also do this, while applying other changes.

How do I get rid of unwanted spaces in IntelliJ?

Tweak: Auto-remove trailing spacesGo to Settings . On the left side of the dialog, click on Editor -> General . On the right side, scroll to the On Save section. Change Remove trailing spaces on: to Modified lines .


1 Answers

Temporarily off

This is only cosmetical.

Hover mouse over it to see the code preview. Click it to expand.

nbsp preview


Permanently off

If you want to turn such code folding off altogether, go to:

Settings > Editor > General > Code Folding and uncheck XML entities

nbsp off

From here

like image 178
Geo Avatar answered Oct 11 '22 09:10

Geo