Is there a SublimeText plugin that reopens the current file as Administrator?
notepad++ has a feature where, if you open a file, and don't have the permissions to edit it, but try and save, it will inform you that you don't have the access, then give you the option of opening as an admin (if you have that permission), after which you can save.
I realise that there are work arounds, but this is a very convenient feature, and one I'd love to see in SublimeText.
To clarify, I don't want to be able to right click on the file in windows explorer, and go "open as". I'm aware of tools that let that happen, I'm specifically talking about once a file is opened as a non admin, and requires admin permissions to save.
Best Answer
Go to gpedit and set these policies:
Then set compatibility mode for the editor to always run as admin.
If you experience some problems you can relax "Admin Approval Mode for the Built-in Administrator account" to "Enabled" as long as you keep "Elevate without prompting".
You might even be able to skip compatibility setting for the app since these policies will give you automatic and silent elevation. Depends on the particular version of OS (LTSB version is very lenient, Home version is very totalitarian).
For some system folders you'll have to make sure that you are running x64 build. It's a different issue that looks like UAC to people but is not. Only Visual Studio knows how to sidestep that silently.
For "extra special" folders like Fonts all that is not going to help you. You'll have to jump more hops (including renaming C:\Windows\Fonts\desktop.ini) if you want to go in via UI but you'll go in just fine via admim cmd console.
So add your editor to path, keep one admin cmd always open and life is good.