Configuring C + + environment with atom under ubuntu1404

[Local Environment]
Operating system: Ubuntu 14.04 64bits

1. Atom download address
Download address: https://atom.io/
Select the version: Download.deb
Open Atom: Enter Atom into the terminal. The Atom interface is shown below:

Atom’s interface looks like this:

In the welcome Guide there is “Install a Package”, click on “Open Installer” as shown below:


2. Install the following three plug-ins:

Linter – GCC linter GCC – make – run

As shown in the figure below: to Install linter-gcc, click “Install”. Linter is the same as GCC-make run

3. Modify the linter-GCC path:

Refer to the figure above and click “Setting” under linter-gcc: make sure the path /usr/bin/g++


Scroll down and check “Lint on-the-fly”. If not checked, code will only be compiled if the file is saved, as shown below:

The effect of the check is as follows:

After installation, press “F6” to compile and run the program. Write a small program to test as follows.

Two plug-ins are recommended to be installed in the same way as the previous plug-ins:

activate-power-mode

Effect:


minimap

Effect:

A similar thumbnail to sublime Text, shown in the upper right corner of the applet test.

Python and other development environments can also be configured under Atom, and you can be interested in baidu below.

Read More: