Sublime Text 3, how to add to right click?

前端 未结 7 1835
别那么骄傲
别那么骄傲 2020-12-13 07:01

How do I add Sublime Text just like how Edit with Notepad++ is there it\'s nothing big but it saves time.

7条回答
  •  我在风中等你
    2020-12-13 07:04

    Just create a reg file subl.reg and open it with a text editor and add the content:

    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\*\shell\Edit with Sublime Text]
    @="Edit with &Sublime Text"
    "Icon"="C:\\Program Files\\Sublime Text 3\\sublime_text.exe,0"
    "MuiVerb"="Edit with Sublime Text"
    
    [HKEY_CLASSES_ROOT\*\shell\Edit with Sublime Text\command]
    @="C:\\Program Files\\Sublime Text 3\\sublime_text.exe \"%1\""
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\Sublime]
    @="Open with Sublime Text"
    "Icon"="C:\\Program Files\\Sublime Text 3\\sublime_text.exe,0"
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\Sublime\command]
    @="\"C:\\Program Files\\Sublime Text 3\\sublime_text.exe\" \"%V\""
    
    [HKEY_CLASSES_ROOT\Directory\shell\Sublime]
    @="Open with Sublime Text"
    "Icon"="C:\\Program Files\\Sublime Text 3\\sublime_text.exe,0"
    
    [HKEY_CLASSES_ROOT\Directory\shell\Sublime\command]
    @="\"C:\\Program Files\\Sublime Text 3\\sublime_text.exe\" \"%1\""
    

    You may need to adapt the paths to your Sublime Text installation. This will add Sublime Text when you rightlick on a file, rightlick on a folder background, and rightclick on a folder. Just double click on the file to add the entries into your registry.

    You can always edit and delete those entry by pressing window+r and then write regedit in that panel. There you will see the same path structure, e.g. HKEY_CLASSES_ROOT\*\shell for right click commands.

提交回复
热议问题