Install Microsoft powershell on Debian stable or testing with Visual Studio Code

Microsoft Powershell

1) Download the package that contains the apt repo configuration for and the public GPG key.
2) Register the Microsoft repository keys installing that package.
3) Update repositories and install Powershell.
4) Execute Powershell.

su -
dpkg -i packages-microsoft-prod.deb
apt-get update && apt-get install -y powershell
[ctrl + d]

Microsoft Visual Studio Code

The easiest way to install Visual Studio Code for Debian/Ubuntu based distributions is to download and install the .deb package (64-bit), installing it will automatically install the apt repository and signing key to enable auto-updating.