Visual code linux mint

Установка Visual Studio Code в Ubuntu 20.04/Linux mint и другие

Visual Studio Code – это кроссплатформенный редактор кода с открытым исходным кодом, разработанный Microsoft. Он имеет встроенную поддержку отладки, встроенный элемент управления Git, подсветку синтаксиса, автозавершение кода, встроенный терминал, рефакторинг кода и фрагменты.

Самый простой и рекомендуемый способ установки Visual Studio Code на машины с Ubuntu – включить репозиторий VS Code и установить пакет VS Code через командную строку.

Как установить Visual Studio Code в Ubuntu/Linux mint и другие

Чтобы установить Visual Studio Code в вашу систему Ubuntu, выполните следующие действия:

Сначала обновите индекс пакетов и установите зависимости, набрав:

sudo apt install software-properties-common apt-transport-https wget

Затем импортируйте ключ Microsoft GPG, используя следующую команду wget :

wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -

И включите репозиторий Visual Studio Code, набрав:

sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"

После включения репозитория apt установите последнюю версию Visual Studio Code с помощью:

Вот и все. Visual Studio Code установлен на вашем рабочем столе Ubuntu, и вы можете начать его использовать.

VS CODE

Как установить русский язык в Visual Studio Code

После установки, в левом сатбаре, перейдите на вкладку дополнения, введите в поисковой строке “Russian”, и установите русскую локализацию. После этого, приложение само попросит вас перезагрузиться.

VS CODE Russian VS CODE Russian

Обновление Visual Studio Code

Когда будет выпущена новая версия, вы можете обновить пакет Visual Studio Code с помощью стандартного инструмента обновления программного обеспечения на рабочем столе или с помощью следующих команд в терминале:

Вывод

Вы успешно установили VS Code на свой компьютер с Ubuntu 18.04/20.04/20.10. Следующим шагом может быть установка дополнительных компонентов и настройка параметров пользователя и рабочего пространства.

Лучшие расширения для Visual Studio Code

Хотя, я придерживаюсь того чтобы использовать приложения с открытым исходным кодом, но мне очень нравиться VS Code, и на всех своих проэктах, я пользуюсь именно этим инструментом.

Читайте также:  Oracle linux boot iso install

Для него написано огромное количество дополнений и расширений, давайте посмотрим на лучшие дополнения для VS Code.

  1. Auto Close Tag – Дополнение которое поможет вам автоматически закрывать теги при написании кода.
  2. Auto Rename Tag – Иногда, когда вы пишете код, вам нужно изменить например тег H1 на H2, и чтобы не менять открывающийся и закрывающийся тег, вы можете сразу изменить оба тега с помощью этого дополнения
  3. Ftp Simple – Для удобного подключения к вашему хостингу или серверу, можно не устанавливать отдельно ftp-клиент, а пользоваться VS Code и этим дополнением, которое позволяет подключаться к удаленному серверу прямо из приложения.

Если у вас есть вопросы, оставьте комментарий ниже.

Источник

How to Install and Use Visual Studio Code on Linux Mint 20

Developed by Microsoft, Visual Studio (VS) Code is a multi-platform, modern, and comprehensive code editor. The Visual Studio Code supports TypeScript, Node.JS, JavaScript by default. Moreover, a plethora of extensions are available for visual studio code, enabling us to support other programming languages like C, C++, GO, etc. The Visual Studio Code is available as a Debian package, flatpak package, and snap application.

Installing Visual Studio Code on Linux Mint 20 from the Debian package

To download the VS Code official Debian package, open your browser and visit the VS Code webpage (https://code.visualstudio.com/Download).

The VS code Debian package, is available for Linux. Click on the Debian package to download it.

Next, choose ‘Save File’ and click on ‘OK’.

The VS, code Debian package, will be downloaded in the ‘Downloads’ directory.

Once the Debian package is downloaded, fire up the terminal and navigate to the ‘Downloads’ directory with the command:

Next, update the apt cache because it is recommended to update the apt cache before installing any new application:

Type the below-given command to install the VS code .deb package:

When the VS code is successfully installed, verify the installation and check the installed version using the command:

The VS code 1.52.1 is successfully installed on my Linux Mint 20.

Installing Visual Studio Code on Linux Mint 20 from the snap application manager

Snap is the universal package manager for various Linux distribution. However, it is disabled on Linux Mint 20 by default. To install VS Code from the snap application manager, we need to enable and install the snapd on Linux Mint 20.

Before installing snap on Linux Mint 20, remove the nosnap.pref file with the command:

Next, update the apt cache and install the snapd with the commands:

To install VS Code from the snap application manager, execute the command:

Читайте также:  Linux права выполнение скрипта

Verify the installation using the command:

Installing Visual Studio Code flatpak package on Linux Mint 20

Flatpak is also a package manager for Linux. It comes pre-installed on Linux Mint 20.

Fire up the terminal and update the apt cache before installing the Visual Studio Code flatpak package:

Now, install the Visual Studio Code flatpak package with the command:

The Visual Studio Code flatpak package is successfully installed.

Press ‘y’ to continue installing the Visual Studio Code flatpak package.

Getting started with Visual Studio Code

Once you have installed the Visual Studio Code application using any of the described methods, click on the Application Menu and search for Visual Studio Code.

Open the Visual Studio Code application, and a dashboard screen will appear. The default theme of Visual Studio Code is dark, but it can be changed as well.

To change the theme, click on File, choose preferences and select ‘Color Theme’.

Select the theme for the given list of themes.

The theme will be updated successfully.

To create a new file, press ctrl+n and start using Visual Studio Code.

Conclusion

Visual Studio Code is a free and popular code editor. It is a multi-platform tool installed on Linux Mint 20 through the Debian package, flatpak, and snap application manager. It provides a wide variety of extensions that enable us to use famous programming languages. This post explains the Visual Studio Code installation on Linux Mint 20.

About the author

Kamran Sattar Awaisi

I am a software engineer and a research scholar. I like to write article and make tutorial on various IT topics including Python, Cloud Computing, Fog Computing and Deep Learning. I love to use Linux based operating systems.

Источник

How to install VSCode on Linux Ubuntu and Mint

How to install VSCode on Linux Ubuntu and Mint

Dive into this comprehensive guide on “How to install VSCode on Linux Ubuntu” and “How to install VSCode on Linux Mint”. We’ll walk you through the straightforward steps to install Microsoft’s Visual Studio Code, commonly known as VSCode, on these popular Linux distributions. Whether you’re using Ubuntu, Mint, or any other Debian-based Linux distribution, we’ve got you covered with the official packages for a seamless installation experience.

What is VSCode, the Visual Studio Code

Visual Studio Code, or simply VSCode, is a mild source code editor that provides comprehensive support and easy understanding for editing, navigation and code clearance.

Based on a rich extensibility model and mild integration with existing tools. VSCODE is free and based on open source for Linux, Windows and MacOS.

VS Code comes with integrated support for JavaScript, TypeScript and Node.js, has a rich ecosystem of extensions (plugins) for other programming languages, such as C++, C#, Java, Python, PHP, Go; and runtimes like .Net and Unity.

Читайте также:  Setup nat on linux

You can easily install VSCode extensions to add new interface languages, programming languages, themes, debugers and for connect to additional services such as databases or APIs.

In this tutorial I will show you how to install Visual Studio Code (VSCODE) on Linux Mint or Ubuntu.

Installing VSCode on Linux Mint or Linux Ubuntu

A VSCode installation package is supplied for use in Debian based systems, like Linux Ubuntu, Linux Mint, Kali Linux, etc.

You can check the latest packages on the VSCode download page . If you want to use the wget command line to get the .deb package directly, first install WGET as below.

Install the WGET if not present.

sudo apt-get update sudo apt-get -y install wget 

However, we will use an APT package of the Microsoft repository to install and keep up to date our Visual Studio Code editor.

1. Add the repository and the key to Visual Studio Code

The APT repository key is required to validate the signed packages to be installed.

Add the key to the system using the commands below:

sudo apt-get update sudo apt-get install apt-transport-https curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/ 

2. Add the APT repository to Linux

With the APT key imported to the system, proceed to add the contents of the repository.

sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list' 

The contents are recorded in the file /etc/apt/sources.list.d/vscode.list .

3. Update the APT and install the vscode

Run the update of the APT package catalog and then install Visual Studio Code:

sudo apt-get update sudo apt-get install code 

After waiting for the installation to finish you can run the editor by calling it directly on the command line, or through the system menu:

If you want to execute Visual Studio Code with a specific folder opened in IDE, browse it through the command line console at the terminal, and run the code command with a point ( . ):

VSCode Extensions

One of the advantages of VSCode is the possibility of improving the environment with extensions developed by the community.

With them you can config the IDE to better meet your stack needs and preferences as a software developer.

Read in this article what extensions you should install to improve your productivity: VSCode extensions for developers.

Final considerations

Very well, now that you have learned how to install the VSCode on Linux Ubuntu and Mint, hands on and a lot of productivity in programming.

Источник

Оцените статью
Adblock
detector