+1

Edit root files under linux

Brandon Watkins 12 ár síðan updated by Michael Kropat 11 ár síðan 2
It seems the this feature is only implemented in the OSX version of sublime. Under linux there is no way to edit files that need root access, since "sudo subl" does not work, and sublime does not prompt for a password (just says "unable to save"

This is a very important feature to have!

Under ubuntu I was configured a launcher as root but, you will lost the configurations file, and all plugins because the editor is not instalid in /usr/share/....

As a workaround, you can try something like this:

EDITOR="subl -w" sudo -e /etc/hosts