powershellpowershell-ise

Powershell IDE: How to restart interactive shell to clear all variables without leaving Powershell ISE?


Let's say I've been using Powershell ISE for a while and my environment space is starting to get dirty, and I need to restart the interactive shell... I don't want to close my editor and reopen it. How to restart powershell ISE interactive shell to clear all variables without closing and reopening the Powershell ISE?

enter image description here


Solution

  • Ctrl+T opens a new PowerShell tab that starts as if it was a fresh PowerShell session.