A Simple Dev Environment with Visual Studio Code on Debian Linux
Tags: linux, vscode
Published: 2022-05-21 04:18:29

---
title: A Simple Dev Environment with Visual Studio Code on Debian Linux
published: true
description: Setting up a simple web development environment on Debian Linux with a handful of basic tools, including VS Code, GitHub Desktop, and Beyond Compare.
tags: linux, vscode
//cover_image: https://direct_url_to_image.jpg
---
Using Visual Studio with Linux has long been a personal goal of mine, and while Linux versions of both Visual Studio and Visual Studio Code (VS Code) have been available for quite some time, I've only recently been able to setup what I would consider a useable, simple dev environment for myself on Linux. After several days of use, I'm pretty happy with the results and wanted to share the steps I took to setup my environment and tools.

This brief post will detail setting up three tools for basic web development tasks like editing and uploading webpages; 1) an IDE (VS Code), 2) a source control (GitHub Desktop), and 3) a file comparison tool (Beyond Compare). These are the three tools I use most heavily, and needed each to work perfectly on Linux before I could really commit to using the OS for daily development.

#Introduction
To get started you will need a Debian Linux machine. If you do not have a Linux machine available you can [download a Debian ISO](https://www.debian.org/download), and [install VirtualBox](https://www.virtualbox.org/) to create a virtual machine.

#Installing VS Code
Visual Studio Code or VS Code is a source code editor with support for a wide variety of languages and is available for multiple platforms including Windows, macOS, and Linux. To get started, [download VSCode](https://code.visualstudio.com/) by selecting the .deb file. If you have trouble finding the .deb file (or you are not accessing the page from a Linux machine), check out the [other VSCode platforms](https://code.visualstudio.com/#alt-downloads) section for additional options.

After downloading the .deb file, navigate to the location and execute the following command (replacing code_1.67.0-1651667246_amd64 with the correct file name):

```bash
sudo apt install ./code_1.67.0-1651667246_amd64.deb
```
If the installation was successful, VS Code will appear under Applications > Development in the Applications Menu.

![Linux desktop with VS Code](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eze8miutcjmdw5iwrpuq.PNG)

For more information, visit [*Running Visual Studio on Linux*](https://code.visualstudio.com/docs/setup/linux).

#Installing GitHub

GitHub is a popular code repository hosting service, and provides source control through a Web-based interface or desktop application. GitHub Desktop for Linux is not available from the app's primary download page, but it is available under [the **Assets** section of each release](https://github.com/shiftkey/desktop/releases).

![List of assets available for GitHub Desktop](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cfrulu98z7wcng4rl515.PNG)

After downloading the .deb file, follow the same steps used to install VS Code — navigate to the file's location and execute the following command (replacing GitHubDesktop-linux-3.0.0-linux1 with the correct file name):

```bash
sudo apt install ./GitHubDesktop-linux-3.0.0-linux1.deb
```
If the installation was successful, GitHub Desktop will appear under Applications > Accessories in the Applications Menu.

![Linux desktop with GitHub](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q9v9f6fhq1cqdykaq5nk.PNG)

For more information, or for instructions on how to install GitHub Desktop from the command line, check out this great post: [*Is GitHub Desktop available for GNU/Linux?*](https://dev.to/rahedmir/is-github-desktop-available-for-gnu-linux-4a69)

#Installing Beyond Compare

Beyond Compare is an excellent file comparison utility from [Scooter Software](https://www.scootersoftware.com/index.php), and can also be used as an FTP client. While the software is not free, there is a 30-day trial available. I've used Beyond Compare for many years, and believe it is well worth the cost, as a single, personal license can be used on multiple machines and platforms.

To get started, [download the .deb package for Beyond Compare](https://www.scootersoftware.com/download.php). Then, once again, navigate to the file's location and execute the following command (replacing bcompare-4.4.2.26348_amd64 with the correct file name):

```bash
sudo apt install ./bcompare-4.4.2.26348_amd64.deb
```

If the installation was successful, Beyond Compare will appear under Applications > Development in the Applications Menu.

![Linux Desktop with Beyond Compare](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/elil1e4orolnq29spf3j.PNG)

For more information, especially if you are using an older version of Debian, visit [*Beyond Compare: Linux Installation Instructions*](https://www.scootersoftware.com/download.php?zz=kb_linux_install).

# Conclusion

[Debian Linux](https://www.debian.org/) is a fast, free GNU/Linux distribution and spinning up a Debian virtual machine for basic web development tasks like editing source code, tracking modifications, and uploading changes, can be accomplished fairly quickly and painlessly with many popular tools and services offering Linux packages.