PhpStorm 內置 Terminal 執行的命令,關閉後如何查看歷史記錄?
doskey /history 當前會話)。Get-History 僅當前會話;啟用 Set-PSReadlineOption -HistorySaveStyle SaveIncrementally 可跨會話保存至 %APPDATA%\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt。history 命令可查看歷史(默認保存 ~/.bash_history / ~/.zsh_history)。PhpStorm Terminal 直接繼承此能力,輸入 history 即可查看。View → Tool Windows → Terminal 面板左側工具欄有「歷史」圖標(時鐘形),可查看**當前項目**的 Terminal 會話記錄(僅限 PhpStorm 記錄的會話元數據,非 Shell 完整歷史)。script (Linux) 或 Start-Transcript (PowerShell) 記錄完整會話。