Atom IDE

download and install

update

/usr/local/bin/atom-update

#!/bin/bash
wget -q https://github.com/atom/atom/releases/latest -O /tmp/latest
MATCHEDROW=$(awk -F '[<>]' '/href=".*atom-amd64.deb/' /tmp/latest)
LATEST=$(echo $MATCHEDROW | grep -o -P '(?<=href=").*(?=" rel)')
VER_LATEST=$(echo $MATCHEDROW | rev | cut -d"/" -f 2 | rev | sed 's/v//g')
VER_INST=$(dpkg -l atom | tail -n1 | tr -s ' ' | cut -d" " -f 3)
if [ "$VER_LATEST" != "$VER_INST" ]; then
wget --progress=bar -q "https://github.com/$LATEST" -O /tmp/atom-amd64.deb --show-progress
dpkg -i /tmp/atom-amd64.deb
echo "Atom has been update from $VER_LATEST to $VER_INST"
logger -t atom-update "Atom has been update from $VER_LATEST to $VER_INST"
else
echo "Atom version $VER_INST is the latest version, no update require"
logger -t atom-update "Atom version $VER_INST is the latest version, no update require"
fi

general

apm install project-manager \
linter \
minimap \
atom-beautify \
atom-overtype-mode \
file-icons \
color-picker \
navigation-history \
atom-save-all

show installed packages

apm list --installed --bare

disabilitare package metrics che manda le statistiche a google

$HOME/.atom/config.cson

editor:
invisibles: {}
softWrapHangingIndent: 4

$HOME/.atom/keymap.cson

'body':
'ctrl-shift-S': 'core:save-all'
'atom-workspace':
'ctrl-alt-u': 'autocomplete-python:show-usages'

keyboard

cheatsheet

ctrl-shift-p: command palette

ctrl-,: settings

ctrl-b: list opened files

ctrl-alt-b: beautify selected code

ctrl-alt-g: find declaration

ctrl-alt-u: find usage

alt–: back

shift-alt–: forward

ctrl-click: multi cursor

ctrl k → split new editor

Ctrl k Ctrl ← focus pane on left

Ctrl k Ctrl ↓ focus on pane below

Ctrl k Ctrl n move focus to next pane

Ctrl k Ctrl p move focus to previous pane

Ctrl k Ctrl → move focus to pane on right

Ctrl k Ctrl ↑ move focus to pane above

Ctrl Shift l toggle dev tools

python

Install some packages as user

sudo pip install pep8
apm install linter-pep8
apm install autocomplete-python

web (html,css,javascript,typescript,...)

apm install atom-typescript
apm install linter-xmllint
apm install linter-tslint
apm install pigments