Как установить atom windows

Настройка текстового редактора Atom и дополнительные пакеты

В статье рассказывается как настроить Atom, чтобы людям, которые до этого работали с Notepad++, было удобно и комфортно.

15.12.2015 27 комментариев 116 476 просмотров

В статье рассказывается как настроить Atom, чтобы людям, которые до этого работали с Notepad++, было удобно и комфортно.

Содержание

В своё время я пытался перейти с Notepad++ на Sublime Text. Не получилось: не сумел найти все нужные для меня фишки из Notepad++ для нормальной работы. Сейчас попробую перейти на Atom.

Статьи по Atom

Установка

Установка на Windows ничем не отличается от установки обычных программ.

Первоначальная установка

Перейдем в настройки приложения File → Settings :

Сперва снимем галочку у пункта Open Empty Editor On Start , чтобы при старте программы открывались последние открытые файлы, и чтобы при открытии файлов через контекстное меню не открывалось новое окно программы.

Я всегда ставлю перенос строк для обычной работы с текстом в Notepad++:

Внесите путь к стандартной папке, где у вас находятся в основном ваши проекты:

Настройка предустановленных пакетов

Включим работу плагина autosave.

File → Settings → Packages . Там находим наш плагин:

И перейдем в настройки Settings, и там включим наш плагин:

Установка пакетов

Очень много дополнительного функционала скрывается в дополнительных пакетах.

Переходим в File → Settings , а там выбираем Install :

А там ищем нужный нам пакет и его устанавливаем.

Установленные пакеты появятся в разделе Packages :

Пакеты, которые себе установил

Я себе установил следующие пакеты (помните, что многие пакеты включаются при перезагрузке программы):

    minimap – отображение карты документа.

pigments – для отображения цветов там, где мы их обозначаем в коде.

color-picker – теперь цвет можно менять через пипетку Ctrl + Alt + C :

file-icons – у файлов появляются иконки под их расширение:

language-qml – для отображения файлов *.qml.

markdown-preview-plus – для отображения preview файлов Markdown *.md. Превью появляется после комбинации клавиш Ctrl + Shift + M .

open-recent – позволяет открывать недавно открываемые файлы.

highlight-selected – Если выделили слово, то в других местах это же слово будет подсвечиваться. Очень полезное сочетание клавиш Ctrl + F3 для перемещения к следующему фрагменту кода, содержащего выделенный текст.

minimap-highlight-selected – дополнение к предыдущему пакету. Теперь подсветка выделяемого слова будет и в карте документа справа.

copy-path – добавляет в контекстное меню вкладок возможность скопировать имя файла или его путь.

symbols-tree-view – по сочетанию Ctrl + Alt + O добавляет список функций в файле для быстрого перехода между ними.

Читайте также:  Mcafee как отключить брендмауэры windows

sort-lines – сортировка текста по F5 . А если войти в консоль Ctrl + Shift + P и там набрать Sort , то увидите, что есть еще команды для работы с текстом по сортировке.

export-html – позволяет экспортировать документ в html с подсветкой синтаксиса. Переходим в консоль и там набираем export и выбираем нашу команду. Данным плагином можно частично заменить функцию печати документов: конвертируем файл в Html и уже в браузере его печатаем.

pdf-view для просмотра pdf документов.

language-latex для отображения LaTeX кода.

Linter

Кроме всех перечисленных пакетов есть еще один из мощных плагинов Atom редактора – Linter. Он позволяет проверять ошибки в коде. Очень полезная вещь.

Но сам по себе он бесполезен. Он скорее выступает как посредник для других подпакетов, которые заточены под конкретные языки программирования. Непосредственно в этих пакетах написано какие ошибки надо искать в коде. Но для них требуется обязательно установленный основной пакет Linter.

Например, устанавливаю я потом пакет linter-csslint, и у меня появляется возможность править документы с CSS и HTML.

Например, в данном документе я забыл поставить открывающую скобку:

Как установить atom windows

To get started with Atom, we’ll need to get it on your system. This section will go over installing Atom on your system as well as the basics of how to build it from source.

Installing Atom should be fairly simple. Generally, you can go to https://atom.io and you should see a download button as shown here:

The button or buttons should be specific to your platform and the download package should be easily installable. However, let’s go over them here in a bit of detail.

Installing Atom on Mac

Atom follows the standard Mac zip installation process. You can either press the download button from the https://atom.io site or you can go to the Atom releases page to download the atom-mac.zip file explicitly. Once you have that file, you can click on it to extract the application and then drag the new Atom application into your «Applications» folder.

When you first open Atom, it will try to install the atom and apm commands for use in the terminal. In some cases, Atom might not be able to install these commands because it needs an administrator password. To check if Atom was able to install the atom command, for example, open a terminal window and type which atom . If the atom command has been installed, you’ll see something like this:

If the atom command wasn’t installed, the which command won’t return anything:

To install the atom and apm commands, run «Window: Install Shell Commands» from the Command Palette, which will prompt you for an administrator password.

Читайте также:  Антивирусные средства для linux

Installing Atom on Windows

Atom is available with Windows installers that can be downloaded from https://atom.io or from the Atom releases page. Use AtomSetup.exe for 32-bit systems and AtomSetup-x64.exe for 64-bit systems. This setup program will install Atom, add the atom and apm commands to your PATH , and create shortcuts on the desktop and in the start menu.

The context menu Open with Atom in File Explorer, and the option to make Atom available for file association using Open with. , is controlled by the System Settings panel as seen above.

With Atom open, click on File > Settings , and then the System tab on the left. Check the boxes next to Show in file context menus , as well as Show in folder context menus . And you’re all set.

Installing Atom on Linux

You can install Atom on Linux using your distribution’s package manager by configuring it to use one of our official package repositories. This will also enable you to update Atom when new releases are published.

Debian and Ubuntu (deb/apt)

To install Atom on Debian, Ubuntu, or related distributions, add our official
package repository to your system by running the following commands:

You can now install Atom using apt-get (or apt on Ubuntu):

Alternatively, you can download the Atom .deb package and install it directly:

Red Hat and CentOS (YUM), or Fedora (DNF)

To install Atom on CentOS, Oracle Linux, Red Hat Enterprise Linux, Scientific Linux, Fedora, or related distributions that use the YUM or DNF package managers, add our official package repository to your system by running the following commands:

You can now install Atom using dnf (or yum depending on your distribution):

Alternatively, you can download the Atom .rpm package and install it directly:

SUSE (zypp)

To install Atom on openSUSE or other distributions that use the Zypp package manager, add our official package repository to your system by running the following commands:

You can now install Atom using zypper :

Alternatively, you can download the Atom .rpm package and install it directly:

Updating Atom

You should consider updating Atom periodically for the latest improvements to the software. Additionally, When Atom receives hotfixes for security vulnerabilities you will want to update your version of Atom as soon as possible.

«Automatically Update» is enabled by default in Core Settings of the Settings View, which will allow Atom to check for updates automatically. If you disable this setting you can update Atom manually.

Читайте также:  Small linux live usb

To perform a manual update:

  • Click on the Atom > Check for Update menu item in the menu bar.
  • Search for Application: About in the Command Palette and click the Check now button.

Atom will begin to update if an update is available.

«Automatically Update» is enabled by default in Core Settings of the Settings View, which will allow Atom to check for updates automatically. If you disable this setting you can update Atom manually.

To perform a manual update:

  • Click on the Help > Check for Update menu item in the menu bar.
  • Search for Application: About in the Command Palette and click the Check now button.

Atom will begin to update if an update is available.

If you are using Atom’s official package repositories, use your distribution’s package manager to update Atom. Otherwise, you will need to manually download and install the latest .rpm or .deb package from https://atom.io. For more details, see Installing Atom on Linux.

Portable Mode

Atom stores configuration and state in a .atom directory usually located in your home directory ( %userprofile% on Windows) . You can however run Atom in portable mode where both the app and the configuration are stored together such as on a removable storage device.

To setup Atom in portable mode download the zip/tar.gz package for your system and extract it to your removable storage.

Then create a .atom directory alongside the directory that contains atom.exe, for example:

Then create a .atom directory alongside the Atom.app application, for example:

Then create a .atom directory alongside the directory that contains the Atom binary, for example:

Portable Notes
  • The .atom directory must be writeable
  • You can move an existing .atom directory to your portable device
  • Atom can also store its Electron user data in your .atom directory — just create a subdirectory called electronUserData inside .atom
  • Alternatively you can set the ATOM_HOME environment variable to point wherever you want (you can write a .sh or .cmd script to temporarily set it and launch it from that)
  • Portable mode installations will not automatically update

Building Atom from Source

The Hacking on Atom Core section of the flight manual covers instructions on how to clone and build the source code if you prefer that option.

Proxy and Firewall Settings

Behind a Firewall?

If you are behind a firewall and seeing SSL errors when installing packages you can disable strict SSL by running:

Using a Proxy?

If you are using a HTTP(S) proxy you can configure apm to use it by running:

You can run apm config get https-proxy to verify it has been set correctly.

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