r/PowerShell • • Mar 05 '20

Visual Studio Code for PowerShell 7

https://devblogs.microsoft.com/powershell/visual-studio-code-for-powershell-7/
187 Upvotes

14 comments sorted by

View all comments

7

u/new-fantomas Mar 05 '20

Is it possible to turn PSReadline history on and and off? When I run the selection in VS Code with F8 the entire selection is saved into PSReadline history. I would like only the commands that I run from prompt to be saved into history.

7

u/rjmholt Mar 06 '20

I don't think there's a way to do that currently, but if you open a feature request we could add it!

3

u/Thotaz Mar 06 '20

There is already a feature request for it here: https://github.com/PowerShell/vscode-powershell/issues/2307