Editing html code is always stuck

Sorry, my English is very poor, translated by Google.

Each time you open a php page with a lot of html code in Phpstorm (Yii2's view file), it always gets stuck.

The development environment I use is as follows:
PHP Framework: Yii2
PhpStorm 2018.1
Build #PS-181.4203.565, built on March 28, 2018
Subscription is active until January 18, 2019
JRE: 1.8.0_152-release-1136-b20 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.13.4




How many lines of code within the file? 

Generally from my experience, when opening large files Phpstorm will "hang" for a moment  (sometimes minutes) and not appear to be doing anything even when looking at Task Manager. However it does eventually load.