```
sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ntype=rpm-md\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/zypp/repos.d/vscode.repo'
```
```
Refreshing the local repository database.
-----------------------------------------
```
RecomendedThe top command should have a similar output.
```
```
darryl@localhost:~> zypper info code
Loading repository data...
Reading installed packages...
Information for package code:
-----------------------------
Repository : Visual Studio Code
Name : code
Version : 1.52.1-1608137084.el7
Arch : x86_64
Vendor : Microsoft Corporation
Installed Size : 258.8 MiB
Installed : No
Status : not installed
Source package : code-1.52.1-1608137084.el7.src
Summary : Code editing. Redefined.
Description :
Visual Studio Code is a new choice of tool that combines the simplicity of a code
editor with what developers need for the core edit-build-debug cycle. See
https://code.visualstudio.com/docs/setup/linux for installation instructions and
FAQ.
```
```