I've created some Add-ons on PowerShell ISE to connect to some services like: Office 365, Exchange Online, Sharepoint Online, PowerCLI, Dell Storage, etc.
I am now trying to migrate from PowerShell ISE to Visual Studio Code and I can't find a way to use Add-ons there. Any tips?
Finally I found a solution! (Sorry, I'll correct my mistake and post the solution here and not only the link...)
Just use "Register-EditorCommand" cmdlet.
On your profile script file, add something like this:
Configure your VSCode shortcut:
Then, with Visual Studio Code opened, press SHIFT+ALT+S and select what you need to be executed.
Jeffery Hicks original post: https://jdhitsolutions.com/blog/powershell/5907/extending-vscode-with-powershell