Installing Visual Studio Code on Oracle Linux 8 (OL8) and developing Python codes

Visual Studio Code (VS Code) is a free and open-source code editor developed by Microsoft. It is widely used by developers to write, debug, and test their code. VS Code provides support for various programming languages and platforms, including but not limited to JavaScript, Python, C++, and Java.

One of the key features of VS Code is its extensibility. It has a large and growing marketplace of extensions that developers can use to add functionality to the editor, such as support for different programming languages, debugging tools, and code formatting. Additionally, VS Code has built-in features for version control, debugging, and terminal access

VS Code is available on Windows, Linux, and macOS, and has a user-friendly interface that makes it easy to use even for beginners. It is widely popular among developers due to its lightweight and fast performance, and the ability to customize it according to their needs.

In this note I will show you how you can install VS Code on Oracle Linux 8 (OL8). Especially for backend developers it is very important to develop programs from the server directly. At the end of the note ; I will show you how you can add python extension to VS code to develop Python programs directly

Now start to install VS Code to OL8 operating system. Open a terminal window on your Oracle Linux system.

Add the Microsoft repository key to your system by running the following command:

sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc        

Add the Microsoft repository to your system by running the following command:

sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'           

Install Visual Studio Code by running the following command:

sudo dnf install code    

This command will install the latest version of Visual Studio Code available in the repository.

After installation, you can launch Visual Studio Code from the terminal by running the following command:

code

You can also launch it from the graphical user interface (GUI) by searching for “Visual Studio Code” in the application launcher. That’s it! Visual Studio Code should now be installed and ready to use on your Oracle Linux 8 system.

If you want to add Python to VS Code, It is very simple. On the left side click the extension. When the Search field is appeared, write Python to this field and Python extension will be appeared, click the install button.

Now Python is added to your environment, you can develop Python application on OL8 server any more.

To write Python codes, Open a folder and start from this folder directly.

Below, you can find a simple Python code.

I am using VS Code and Python to develop database security systems. If you want to get much more for support about database security you can contact with me.

Yusuf Anıl Akduygu

anil.akduygu@arbosecurity.com

yusufanilakduygu@gmail.com