Skip to content

Instantly share code, notes, and snippets.

@manolenso
Created October 8, 2014 20:15
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 manolenso/85ac06febdee7c9fea29 to your computer and use it in GitHub Desktop.
Save manolenso/85ac06febdee7c9fea29 to your computer and use it in GitHub Desktop.
Open Atom reg
Windows Registry Editor Version 5.00
;
; Adds 'Open in Atom' to context menu (when you right click) in Windows Explorer.
;
; Based on https://github.com/Zren/atom-windows-context-menu. It didn't work
; https://github.com/Zren/atom-windows-context-menu/issues/1.
;
; Save this file to disk with a .reg extension. Replace C:\\Atom\\atom.exe with
; the path to the atom executable on your machine.
;
; Make sure you are running as administrator.
;
; Double click the file and then click yes on the popup.
;
; OR
;
; open a command prompt and type
; C:> regedit path\to\open-w-atom.reg
;
; That's it!
;
; License, MIT
; when you right click a file
[HKEY_CLASSES_ROOT\*\shell\Atom KI ext]
""="Open File in Atom"
"Icon"="C:\\Atom\\atom.exe"
[HKEY_CLASSES_ROOT\*\shell\Atom KI ext\command]
""="C:\\Atom\\atom.exe \"%1\""
; when you right click a folder
[HKEY_CLASSES_ROOT\Directory\shell\Atom KI ext]
""="Open Folder in Atom"
"Icon"="C:\\Atom\\atom.exe"
[HKEY_CLASSES_ROOT\Directory\shell\Atom KI ext\command]
""="C:\\Atom\\atom.exe \"%1\""
; when you right click a folder while holding shift
[HKEY_CLASSES_ROOT\Directory\Background\shell\Atom KI ext]
""="Open Folder in Atom"
"Icon"="C:\\Atom\\atom.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Atom KI ext\command]
""="C:\\Atom\\atom.exe \"%V\""
; when you right click the background, not on a particular file or folder.
[HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\Atom KI ext]
""="Open Folder in Atom"
"Icon"="C:\\Atom\\atom.exe"
[HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\Atom KI ext\command]
""="C:\\Atom\\atom.exe \"%V\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment