Atom Editor Awesome Setup
Recently i have switched my programming environment from Text Mate to the HTML5 based Atom IDE made by GitHub. It's an awesome code editor with lots of plugins and themes.
Everything in the editor is customizable from the layout to shortcut keys. And its easy to customize it to your needs or even create new plugins.
The feature that i like the most in this app is the ability to have a web browser inside the IDE for live preview of your work.
Installing the app
Download the app here. Its available for Mac, Windows and Linux. Atom already comes with about 70 plugins installed that do many things like syntax highlight for diferent languages, the autocomplete function or the status bar.
If you have node.js installed, then after downloading and installing Atom, launch it and click on "Install shell commands" in the app menu.
Customizing
Open the preferences pane by clicking in preferences on the app menu or by pressing CMD + ,
on mac or CTRL + ,
on windows.
Use the packages tab to install plugins and the themes tab to view and install themes. Its possible to browse the Atom plugins thru their website too.
Atom has two types of themes: Editor UI themes and syntax highlight themes. There are also plugins, witch can add or change any aspect of the editor.
James Peret's Package List
This is my current list of packages for the Atom Editor. Since Atom is in constant development, some packages may be depreciated.
Themes
- Graphite-UI - Cool dark UI.
- railscast-theme - Syntax highlight theme based on the RailsCast TextMate theme.
Packages
- web-browser - A chrome browser inside a atom tab.
- term2 - Run a shell session inside a atom tab. Needs iTerm2 installed.
- file-icons - Package with diferent icons for each file type.
- pane-layout-plus - Shortcut keys for changing to different pane layout setups.
- pigments - Displays inline colors on code.
- project-manager - Actions for saving, and switching between projects.
- project-sidebar - Toolbar for quickly switching between projects.
- git-tab-status - Color codes tabs based on the file's git status.
- less-than-slash - Automatic closing of HTML tags when
</
is typed. - wordcount - Display the word count in the status bar.
- markdown-preview-opener - Opens the markdown-preview pane automatically when a markdown file is opened.
- markdown-scroll-sync - Auto-scroll markdown-preview tab to match markdown source.
- maybs-quit - Alert message before closing the app.
- time-status - Displays the current time in the status bar.
- wakatime - Automatic time tracking.
- toggle-tabs - Toggle tabs visibility.
- pane-info - Show filename in each pane.
- rails-partials - Generate a rails partial from selected text.
Custom Key Bindings
Its really easy to create your own keyboard shortcuts. Click on the menu item "Open Your Keymap". This will open a keymap.cson
file. To create your key bindings, just add the key combination and action to the body
object:
To find the correct action name, use the Atom action navigator. Open it with CMD + Shift + P
on mac or CTRL + Shift + P
on windows.
Custom CSS
In the same way that modifying keybindings, its possible to modify Atom's styles. Click on the menu item "Open Your Stylesheet". This will open a styles.less
file. Here you can override any of Atoms CSS classes.
Here is my stylesheet with some overrides:
To find what classes to modify, you can use the Chrome Developer Tools inside Atom. To open the panel press CMD + Option + i
on a mac or CTRL + Option + i
on windows. Then you can use the magnifying glass tool to click on any element of the Atom IDE layout and see its HTML and CSS classes.
Shortcut Keys (mac)
Basic Atom shortcut keys
CMD + \
- Toggle folders and files sidebarCTRL + Shift + P
- Command LauncherCMD + Shift + N
- Open new Atom windowCMD + Shift + W
- Close atom window
Plugins shortcut keys
CTRL + ALT + b
- Toggle web browser toolbarALT + ALT + 1
- Change layout to single paneALT + ALT + 2
- Change layout to dual paneALT + ALT + 3
- Change layout to 3 panesALT + ALT + 4
- Change layout to 4 panesALT + ALT + 5
- Change layout to 5 panes
My Custom shortcut keys
F6
- Toggle status barCTRL + ALT + CMD + p
- Toggle project sidebarCRTL + TAB
- Switch to next tab in paneCRTL + Shift + TAB
- Switch to previous tab in paneCTRL + ALT + TAB
- Switch to next paneCTRL + ALT + Shift + TAB
- Switch to previous pane
About me
Hi, my name is James Peret. I'm a freelance designer, programmer and filmmaker from São Paulo, Brazil. This is my blog about technical stuff.