Skip to content

Instantly share code, notes, and snippets.

@jamesmacfie
Created August 21, 2014 23:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesmacfie/5d984aa2c45694ae142e to your computer and use it in GitHub Desktop.
Save jamesmacfie/5d984aa2c45694ae142e to your computer and use it in GitHub Desktop.
A small bit of code that adds the ability to close all open tabs in your Atom editor. Put this in your init.coffee file (then reload Atom) and then 'Close All Tabs' will be an available option in the Command Palette
atom.workspaceView.command 'pane:close-all-tabs', ->
panes = atom.workspace.getPanes()
for pane in panes
pane.destroy()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment