r/PHPhelp • u/Confident_Skin8957 • 17d ago
Is there way how to optimalize phpstorm?
/r/Jetbrains/comments/1xtp10k/is_there_way_how_to_optimalize_phpstorm/
3
Upvotes
r/PHPhelp • u/Confident_Skin8957 • 17d ago
3
u/SoftwareNegative8783 17d ago
If those big files are generated, right click the folder and pick Mark Directory as > Excluded. PhpStorm stops indexing it. Also try Help > Change Memory Settings and give it 2-4 GB.
2
u/obstreperous_troll 17d ago
Jetbrains IDEs tend to not be happy with files with tens of thousands of lines, and that's definitely a problem with generated sources. If they're not generated, then just don't make your sources so dang big. If they are generated, you can associate them as plain text, but it tends to lose the association every time you clean and regenerate.
Curious that you don't have this problem with older versions though, since I've never seen it behave well with giant files.
2
u/Gesar_Warrior 13d ago
Before excluding things blindly, check what is actually burning the CPU. Help > Diagnostic Tools > Activity Monitor shows CPU usage per subsystem and plugin, so you can see whether it's indexing, an inspection, or a plugin (AI assistants and framework plugins are frequent offenders). If it turns out to be inspections, you can lower the highlighting level just for the heavy file via the inspections widget in the top-right corner of the editor, instead of putting the whole IDE into Power Save Mode. If nothing obvious shows up, run Help > Diagnostic Tools > Start CPU Usage Profiling while you reproduce the lag and attach the snapshot to a YouTrack issue. Since the older version runs fine on the same code, it looks like a regression, and JetBrains usually reacts to reports with a snapshot attached.