I have in my settings the default of "open_files_in_new_window": "never",
. I use Windows 10 and normally open ST through a hotkey using another program that runs with admin rights and, consequently, opens ST with admin rights. When I have a project open in ST and double click on a file, given the settings, I would expect the file to be opened as another tab in ST. However, what happens is that another ST instance is created without admin rights. Then, ST opens the project in the second instance and finally opens the file in a new tab. Now, I have two ST instances. This has been quite annoying, but I only realized the pattern recently, given the 4152 version shows when ST has admin rights. I also noticed I cannot drag and drop a file into an ST instance with admin rights. Are these expected behaviors?
Opening files in ST with admin rights
rcopat
#1
0 Likes
bschaaf
#2
This is intentional; you’d need an explorer with admin rights, or a command line with admin right in order to get an admin Sublime Text instance to open a file as administrator.
0 Likes
jfcherng
#3
As a Windows shortcut, you can hold “ctrl+shift” and then click an app icon in the taskbar to open it as an admin.
0 Likes
rcopat
#4
Thank you for the tip. ctrl+shift+click works for other apps, but does not seem to be working for File Explorer for some reason.
Anyways, I will try to see if I can open ST without admin rights using AutoHotkey. Maybe there is an option there.
0 Likes