Questions tagged [atom]

Atom is a free and open-source text editor by GitHub, that aims to be a "Hackable text editor for the 21st century". It includes features such as syntax highlighting (which is available for a wide range of different programming/markup languages), spell-check, autofill, etc.

Atom is a free and open-source text editor, licensed under the MIT license, that is developed by GitHub. Its first stable release (1.0) was on the 25th of June 2015, although preview releases had been available for some time before then. Its installation is usually simple, but it requires a recent release of Node.js which can make things more complicated. It is available from the webupd8team PPA, although installing from source and from 64-bit deb packages provided on their website are also viable options.

Installation

Installing Atom can be done via three major methods, on Ubuntu. The first, which is only possible on 64-bit systems, is to download the deb package provided on their website and then install it either via the Ubuntu Software Center or by running:

sudo dpkg -i atom-amd64.deb

from the command line. This installation will need to be manually updated every time a new release becomes available. That is, one will need to download the deb package from this website, again, and re-run the above command to update the existing installation.

Secondly, Atom may be installed from the webupd8team PPA, which can be performed by running:

sudo add-apt-repository ppa:webupd8team/atom
sudo apt-get update
sudo apt-get install atom

This installation will be automatically updated every time a new release becomes available and one runs the software updater.

Thirdly, Atom may be installed from source. This method is usually the most time-consuming (easily taking over an hour, but most of this will be automated, requiring no user input) and liable to errors. Firstly, one must get the dependencies, by running:

sudo apt-get install -y build-essential git libgnome-keyring-dev fakeroot
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
sudo apt-get install -y nodejs

then get the source code:

git clone https://github.com/atom/atom
cd atom
git fetch -p
git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
script/build
sudo script/grunt install

This installation will not self-update, hence this must be done manually. To update a source installation manually, run (from the atom source directory):

git remote add upstream https://github.com/atom/atom.git
git fetch -p
git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
script/build
sudo script/grunt install

the first of these lines can be omitted after you update the first time.

External links

116 questions
10
votes
4 answers

How to open a terminal from within Atom?

I'm currently working with Atom, and sometimes I want to open a terminal on the directory my working file is. To do this, I usually have to open the folder in nautilus (right clicking the file in atom) and then I open a terminal on that directory…
lapisdecor
  • 1,627
4
votes
2 answers

Trying to install Atom. Unable to start Clangd language server

I am fairly new to Ubuntu. I am trying to set up Atom to write code with C++ and I get this: Tried to spawn process using executable /usr/bin/clangd, which does not exist. Ensure you have correctly configured the path to Clangd in the package…
2
votes
2 answers

Atom: select all occurrences at once

Pressing Ctrl+D will select one occurrence. Pressing it again will select another occurrence. We need to press it over and over until confident has select all occurrence. Is there any way to select all occurrence at once? (In VS Code, the shortkey…
apasajja
  • 127
2
votes
1 answer

Atom won't keep my unsaved text content when it is reopen

I just chose to use Atom as my Text editor. However, one thing I expect is when I open the app, I want my previous tabs being open even they are not saved ones. However, now what I got is everytime, I try to quit Atom, it asked me to save the file,…
Laodao
  • 121
1
vote
1 answer

Permission denied error when trying to run Atom

Below is the error I get when I try to run Atom after following this guide:
1
vote
0 answers

How to make Atom display output in Terminal

I'm trying to run a c++ program in Atom. I installed the gpp-compiler package, and it's running my program when I press F5. It's outputting to XTerm (linux terminal). How can I make it output to the normal Terminal. When there is an error in the…
1
vote
1 answer

After involuntarily messed up with Atom config I removed it and reinstalled but still the config is the old messed up one

I have involuntarily changed the config.cson of Atom and my wish in order to get it back I tried to install and reinstall the software several times but always the old messed up config insisted to be there. It has caused failed to load config.cson.…
1
vote
1 answer

How do I open 2 files side by side for comparison in atom editor

This really is a struggle This freaking editor doesn't wanna let me open two files alongside each other for comparison very easily I give up trying to figure out how to do it Anyone can help?
Mices
  • 121
1
vote
1 answer

how to configure atom for running Cpp programs?

** I have installed atom with the help of youtube I have installed gpp-compiler, linter, linter-gcc ** atom showeing error while compiling a c++ program
0
votes
1 answer

Segmentation fault when trying to install packages and themes from both command line and atom user interface

I newly installed Atom on Ubuntu 17.10 via Ubuntu Software. But I cannot install any package nor theme, neither from the user interface nor from the terminal. Both from the +Install Packages pane and from the terminal (using $ apm), this is what I…
0
votes
1 answer

Atom editor 1.60 "Editor is not responding" at launch

Since today, I can't open Atom Editor (my main work tool) on Ubuntu 20.04. When it launch, it shows the code I was working on but can't open totally, and then I get the "Editor is not responding" error message : I rebooted my computer and…
Ruff9
  • 140
0
votes
1 answer

How to upgrade Atom from webupd8team/atom to the offical packagecloud.io/AtomEditor/atom

Not until very recently you couldn't apt install atom unless you use an unoffical source webupd8team/atom. Now Atom officially supports apt install by packagecloud.io/AtomEditor/atom. But upgrading 1.26.1-1~webupd8~0 to 1.33.0 using the official…
-3
votes
1 answer

E: Malformed entry 1 in list file /etc/apt/sources.list.d/atom.list

When I try installing anything I get error E: Malformed entry 1 in list file /etc/apt/sources.list.d/atom.list /etc/apt/sources.list.d/atom.list: deb https://packagecloud.io/AtomEditor /atom/any/ any main
Pythenx
  • 11