New version of VS Code started restoring Terminal sessions from the last time it was used. How to override that behavior?
This config in settings.json
solved it:
"terminal.integrated.persistentSessionReviveProcess": "never"
So your settings are visible in JSON or UI format. For JSON @Nenad Milosavljevic solution should do the job. I'll explain the UI one.
Open command palette (CTRL + SHIFT + P)
Type user settings and select the option
Select Features > Terminal > scroll down a little where you'll find the option and then uncheck the option "Integrated: Enable Persistent Sessions"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With