Visual Studio Code - Where is the terminal history saved?

On Linux & MacOS, type the following command to display the path of the history file:

echo $HISTFILE

The history file may be different between VSCode and your regular terminal. So you should type this command within the integrated terminal.


VSCode terminal use external shell. For linux the default shell is bash, I am not so sure about window, but I guess the default shell for window is powershell.

If your terminal shell is indeed powershell, this should help you locate the log file.