Quantcast
Channel: 技术笔记 –龙堂
Viewing all articles
Browse latest Browse all 40

Add Sublime Text windows context menu

$
0
0

Sublime Text provided portable version installation with zip file that you can just extract to any folder that current user has the access permission, however, seems there’s no easy way to add a context menu like “Open with Sublime Text”.

Created this registration file that can be imported as current user, the following text can be saved like CreateSublimeTextContextMenu.reg, then you can double click to import it.

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\Open with Sublime Text]
"Icon"="\"C:\\<installation_path_to_Sublime Text>\\sublime_text.exe\""

[HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\Open with Sublime Text\command]
@="\"C:\\<installation_path_to_Sublime Text>\\sublime_text.exe\" \"%1\""

After imported, right click any file or folder there will be a “Open with Sublime Text” context menu shown.


Viewing all articles
Browse latest Browse all 40

Trending Articles