The easiest way to install is by opening the .deb package via Software Center GUI. If your Linux distribution is Debian based (Debian/Ubuntu) download your Visual Studio Code .deb Package and install it.
If you prefer to install using your terminal, type the command
sudo apt-get install code
For more information access https://code.visualstudio.com/docs/setup/linux
Download Visual Studio Code installer and double-click on the downloaded file to open its contents. Drag Visual Studio Code.app to the Applications folder. To make it available in the Launchpad and to add Visual Studio Code to your Dock, right-click the icon and choose Options >> Keep in Doc.
For more information access https://code.visualstudio.com/docs/setup/mac