Atom Editor Primer to Master (a) installation and use of basic __atom

Source: Internet
Author: User
Tags save file homebrew cask brew cask linux mint

Original Date: 2015-12-18
Update Time: 2016-12-08 why use Atom

Atom is an editor launched by GitHub, known as the 21st century hacker editor. Its main features are modern, easy-to-use, customizable.
I have used a variety of editors before, now to summarize the personal views of the editor:

Vim is the longest and most frustrating editor I've used.
Its advantages are forced lattice, strong customization, high editing efficiency, less resources, can also terminal operation
The disadvantage is that the learning curve is steep, often out of some inexplicable error, or is suddenly a large pile of debugging information flashed, the most ugly, even if the use of a variety of plug-ins to beautify, or the most ugly.
In addition, the modernization of their own features too little, too dependent on plug-ins, if you want to achieve the most basic functions of the IDE, you need to install a large number of plug-ins, the quality of the plug-in itself and compatibility between each other is a problem.

The advantage of Emacs is that it is powerful and achievable, because he is an operating system himself.
The disadvantage is that the entry threshold is high, and I read two great books on Emacs and Lisp to use Emacs. But I personally think its biggest problem is that the accelerator is too anti-human, especially in the notebook when the fingers really unbearable ...

Sublimetext
Very beautiful, at least when it was first introduced as one of the most beautiful editor, with some editor should have the function, so do not need to configure how to get started.
The disadvantage is the closed source, charge, the VIM mode of the cursor is too ugly, the Chinese support is not good, have been launched for several years or can not enter Chinese under Linux (although it can be solved by some means, but to some extent, it can explain the author's attitude towards Chinese users, which is a closed source caused by a problem).

Vscode
Microsoft launched the editor, some time ago just open source, feeling and atom is very similar. This is I very optimistic about an editor, but now the problem is that the release time is too short, features and plug-ins are not rich enough, the ecological circle has not formed, but by the good father, perhaps two years to rule the world.

Atom is more balanced than the editor above, easy to use, 0 threshold, resource occupancy is not high, the function of their own support is quite many, configuration is also very convenient, there are a lot of plug-ins can choose, but also open source free, and in the Chinese support on the no problem.

This tutorial mainly refers to Atom's official document 1.12.6 version, the tutorials used in many of the pictures are also taken from there, in the following text will not be noted.

This tutorial is written in a Linux environment where shortcuts and other features are tested and passed under Linux Mint. installation

Open the official homepage

The webpage will automatically judge your operating system and give its corresponding download button
For example, my system is Linux, you can click the download. deb button to download the system's corresponding installation package
If you want to download another system's installation package, click on the other platforms link to Mac

After extracting the downloaded ZIP installation package, drag the extracted atom application to the application directory
or installed via homebrew cask

Brew Cask Install Atom
Windows

Run the installation package to install Linux

If it is based on a Debian distribution, execute the command:

sudo dpkg-i atom-amd64.deb

If it is Redhat, execute:

Rpm-i atom.x86_64.rpm

After the installation is complete, run atom and you will see an interface that shows that we have successfully installed
Basic Use Command Panel

Atom's many features learn and reference other excellent editors, and the command panel is one.
When you first saw it, you thought you were using sublime.
The command panel is one of the most common features in Atom, and you'll see it when you use the shortcut key ctrl+shift+p in the editor.

In the Control Panel, you can enter all the commands defined in atom and plug-in and support the fuzzy search
For example, when you enter Cboo, all commands that contain these 4 characters are listed.
The shortcut key (if any) that corresponds to this command is also displayed after the command is listed to set the window

The visual setting interface is one of the reasons that atom is easy to use, rather than having to manually modify the configuration file as the traditional editor does.

You can use the following three ways to open the Settings window
1. Main Menu Edit->preferences
2. In the command panel, enter the command settings View:open. Because the command window supports a fuzzy query, you only need to enter SVO.
3. Use shortcut keys CTRL +,

In the Settings window you can set up and manage various editor behavior, keyboard shortcuts, plug-ins, themes, and other Content Settings window interface theme and code highlighting

Atom came with 4 window themes and 8 code highlighting methods
You can configure and modify by setting the Themes page in the window
In addition, there are more than n n more than the third party can be made to install the theme, the installation method will be mentioned later
File Actions Open File

You can use the main menu File->open File ... or shortcut key ctrl+o to open the File Selection window
Save File

Main Menu File->save
Shortcut keys Ctrl+s
Save As: Ctrl+shift+s
Save All Files: File->save All open Folder

Opening a folder is a useful feature that can open a project's root directory like the IDE
You can choose File->add Project Folder from the main menu ... To open or add a directory, or you can use the shortcut key Ctrl+alt+o.
After you open a folder, all subdirectories and files under that folder will be displayed in the tree to the left of the main window as shown in the following image

You can use shortcut key a,m,delete to create new, rename, delete, and so on by right-clicking the menu in the tree bar or selecting a file.
If you want to toggle the display and hiding of the tree bar, you can use the shortcut keys to ctrl+\ or enter commands. view:toggle
The right-click menu in the directory tree also enables you to find files by copying and pasting files

When you open one or more directories, you can:
* Search for files in the directory via ctrl+t or ctrl+p
* Search for a currently open file via Ctrl+b
* Search for a new or changed file through Ctrl+shift+b

Of course, these features also support fuzzy query
If you need to filter out certain files (such as. pyc files) or directories (such as. git) while searching, you can configure Core.ignorednames and fuzzy-finder.ignorednames.
You can also configure Core.excludevcsignoredpaths to filter out files that are configured in. Gitignore.
The specific configuration method will be mentioned later. Summary

In this article we learned how to install atom and some basic methods of use, after learning this part of the content to believe that you can easily use atom
In future courses we will learn some more advanced uses of atom, so that we can use more convenient and smooth.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.