Stop collapsing / code-folding of nbsp;
Answered
Is there any way of stopping PHP storm from collapsing (or code folding) nbsp; characters in my blade files.
Its really annoying as you cannot tell they are there and it can mis-align code. But the worst part is if you press backspace it removes just 1 character from the nbsp;, breaking the code without causing an error (as it thinks its just a string) and it then expands out.
Please sign in to leave a comment.
Hi there,
Settings/Preferences | Editor | General | Code Folding --> XML entities
Uncheck that option and re-open the file - should do the job.
Thank you. That works
This is not working for me in 2017.1 - is there some new option to do this?
Hi,
No, as far as we know, there were no related changes.
Did you try disabling other folding options there?
So I think it did actually work, but it seems like PHPStorm is caching the expansion for the particular file I was testing with. If I open a new file, things work as expected... I'm not sure how to clear that cache so that it reopens it with the current settings.
Try to run File > Invalidate Caches/Restart > Invalidate and Restart. Also try to disable custom plugins
Invalidating the caches didn't do anything. I'll dig through my plugins and see if there's something there that's messing things up. The weird thing is that my laptop crashed last night, and when i brought it back up the current folding settings applied to the file. But I can't get it to apply now even after restarting PhpStorm.