atom-editor

Getting started with atom-editor

Remarks#

This section provides an overview of what atom-editor is, and why a developer might want to use it.

It should also mention any large subjects within atom-editor, and link out to the related topics. Since the Documentation for atom-editor is new, you may need to create initial versions of those related topics.

Versions#

VersionRelease Date
1.12.82017-01-03
1.12.72016-12-08
1.12.62016-11-25
1.12.52016-11-21
1.12.42016-11-17
1.12.32016-11-15
1.12.22016-11-11
1.12.12016-11-10
1.12.02016-11-09
1.11.22016-10-17
1.11.12016-10-11
1.11.02016-10-11
1.10.22016-09-07
1.10.12016-09-06
1.10.02016-08-30
1.9.92016-08-17
1.9.82016-08-10
1.9.72016-08-08
1.9.62016-08-06
1.9.52016-08-05
1.9.42016-08-04
1.9.32016-08-04
1.9.22016-08-03
1.9.12016-08-02
1.9.02016-07-29
1.8.02016-06-06
1.7.42016-05-20
1.7.32016-04-28
1.7.22016-04-19
1.7.12016-04-14
1.7.02016-04-13
1.6.22016-04-01
1.6.12016-03-29
1.6.02016-03-17
1.5.42016-03-01
1.5.32016-02-12
1.5.22016-02-11
1.5.12016-02-10
1.5.02016-02-09
1.4.32016-02-02
1.4.22016-01-28
1.4.12016-01-25
1.4.02016-01-13
1.3.32016-01-08
1.3.22015-12-16
1.3.12015-12-10
1.3.02015-12-09
1.2.42015-11-20
1.2.32015-11-19
1.2.22015-11-18
1.2.12015-11-13
1.2.02015-11-12
1.1.02015-10-29
1.0.192015-09-25
1.0.182015-09-24
1.0.172015-09-24
1.0.162015-09-23
1.0.152015-09-18
1.0.142015-09-18
1.0.132015-09-17
1.0.122015-09-17
1.0.112015-09-02
1.0.102015-09-01
1.0.92015-08-28
1.0.82015-08-27
1.0.72015-08-12
1.0.62015-08-11
1.0.52015-08-06
1.0.42015-08-04
1.0.32015-07-28
1.0.22015-07-08
1.0.12015-07-08
1.0.02015-06-25
0.211.02015-06-22
0.210.02015-06-17
0.209.02015-06-11
0.208.02015-06-09
0.207.02015-06-05
0.206.02015-06-04
0.205.02015-06-02
0.204.02015-05-28
0.203.02015-05-28
0.202.02015-05-27
0.201.02015-05-21
0.200.02015-05-19
0.199.02015-05-14
0.198.02015-05-07
0.197.02015-05-07
0.196.02015-04-30
0.195.02015-04-30
0.194.02015-04-22
0.193.02015-04-21
0.192.02015-04-15
0.191.02015-04-14
0.190.02015-04-07
0.189.02015-04-01
0.188.02015-03-24
0.187.02015-03-09

What is Atom?

Atom is a hackable text editor created by GitHub and developed on top of the Electron desktop application platform.

This means it can be used as a text editor for basic programming up to a full-sized IDE. It is also extremely customisable, it provides thousands of community-made packages (syntax highlighting, improved UX, etc.) and themes to suit everyone’s needs. It is also available on Windows, MacOS, and Linux.

Here is an example:

Example of the Atom editor

Atom provides other helpful features including:

  • Opening directories
  • Multiple editing tabs
  • Side-by-side editing panes
  • Multiple editing cursors
  • Line switching
  • File and directory tree management

Running a “Hello, World!” program in Python using Atom from scratch

Atom is versatile and flexible text editor and has hundreds of community-made, open-source packages that can compile and run source files, for many languages. This guide will show how easy it is to code Python with the Atom editor.

This guide assumes you do not have Python nor Atom installed in your system.

Step 1: Installing Python

Python can be installed from the either the official website, or if you’re using Linux, through package managers (however Python usually comes pre-installed anyways).

If you’re a Windows user, do not forget to set python.exe to your %PATH%.

Step 2: Installing Atom

You can install the Atom editor from the official website or through package managers.

Step 3: Configuring Atom

For more information about installing packages, and themes, read this dedicated topic.

In order to compile and run programs, the Atom community provides packages to fill that need. For this example, we will be using script to run our program.

Go to File > Settings > Install.

Type script in the search bar and install it. When it is installed, it should be listed in “Packages” in the Settings bar. It should be noted that script is not capable of user input.

If you’re using MacOS or Linux, you can use the apm package manager to install packages.

Step 4: Programming and executing

Pick a directory where you would like to store your PY source file.

  1. Make sure you can see the Tree View pane; if you cannot see this pane, you can toggle it by going to View > Toggle Tree View.

  2. Go to File > Add Project Folder and select a directory which will be set as your root directory for a project.

  3. Right-click the folder and click New File, then enter in hello-world.py and type in the following code:

    print("Hello, World!")
  4. Press CTRL+SHIFT+B to run the script. Alternatively, you can go to View > Toggle Command Palette and enter Script: Run.

    The script should return:

    Hello, World!
    [Finished in 0.125s] 

This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow