Atom Configuration

Configure Atom editor settings and preferences

Core Settings

# config.cson file
core:
  fontSize: 14 # editor font size
  themes: [one-dark-ui, one-dark-syntax]
  telemetryConsent: no # disable telemetry
  autoHideMenuBar: true # hide menu bar

Editor Settings

editor:
  fontFamily: Consolas # font family
  fontSize: 14 # font size
  tabLength: 2 # tab spacing
  softWrap: true # wrap long lines
  showIndentGuide: true # show indent guides
  showInvisibles: false # hide invisibles

Keybindings

# keymap.cson file
atom-text-editor:
  ctrl-d: editor:duplicate-lines
  ctrl-shift-k: editor:delete-line

atom-workspace:
  ctrl-alt-f: project-find:show

Snippets

# snippets.cson file
.source.js:
  Console log:
    prefix: clg
    body: console.log($1);

.source.python:
  Print statement:
    prefix: pr
    body: print($1)

Init Script

# init.coffee file
atom.commands.add atom-workspace,
  custom:insert-date: ->
    editor = atom.workspace.getActiveTextEditor()
    editor.insertText(new Date().toDateString())