본문 바로가기
Application/Text Editor

[sublimeText] Open with Sublime Text 3

by NAMP 2015. 11. 24.

[sublimeText] Open with Sublime Text 3





@echo off

SET st2Path=C:\Program Files\Sublime Text 3\sublime_text.exe

rem add it for all file types

@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3"         /t REG_SZ /v "" /d "Open with Sublime Text 3"   /f

@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3"         /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f

@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f

rem add it for folders

@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3"         /t REG_SZ /v "" /d "Open with Sublime Text 3"   /f

@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3"         /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f

@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f

pause


두번째 줄의 st2Path 에 알맞은 경로가 입력되도록 합니다. 


위의 내용을 복사해서 OpenWithSublimeText3.bat 파일을 만들고 실행합니다. 





OpenWithSublimeText3.bat












출처: http://wordpress-corner.com/add-open-sublime-text-3-windows-explorer-context-menu/


댓글