Unlike most terminals, PHPStorm allows you to copy with syntax highlighting intact. Just select and copy — HTML/ANSI codes are preserved.
Sometimes your terminal shell (like Zsh or bash) uses the same shortcut as PHPStorm. If you see conflict issues, you can disable "Override IDE shortcuts" in Settings > Tools > Terminal.
Run a long process (e.g., npm run watch ), then press Ctrl + Shift + F12 to hide terminal while it runs. A badge appears on the terminal tool window button — click to restore.