사용자 도구

사이트 도구


사이드바

카테고리

tool:sublime

서브라임 텍스트 (Sublime Text)

색상 변경

탭을 보이게 했을 경우, 탭 색상 변경

  • 유저 색상 테마 폴더 : (설치폴더)\Data\Packages\User
<key>foreground</key>
<string>#E8E0CE40</string>

맥에서 Home, End 키 설정

맥에서는 키 설정이 추가로 필요하다.

  • 메뉴 > Preferences > Key Bindings : 키 설정 화면 열기
  • 윗 부분 : home, end 키 역할 추가와 shift키를 누르고 선택 하기 기능 추가
  • 아래 부분 : Ctrl 키를 눌렀을때의 스크롤 기능 추가
[
	{ "keys": ["home"], "command": "move_to", "args": {"to": "bol"} },
	{ "keys": ["end"], "command": "move_to", "args": {"to": "eol"} },
	{ "keys": ["shift+end"], "command": "move_to", "args": {"to": "eol", "extend": true} },
	{ "keys": ["shift+home"], "command": "move_to", "args": {"to": "bol", "extend": true } },
 
	{ "keys": ["ctrl+home"], "command": "move_to", "args": {"to": "bof"} },
	{ "keys": ["ctrl+end"], "command": "move_to", "args": {"to": "eof"} },
	{ "keys": ["ctrl+shift+home"], "command": "move_to", "args": {"to": "bof", "extend": true} },
	{ "keys": ["ctrl+shift+end"], "command": "move_to", "arg s": {"to": "eof", "extend": true} }
]

DeleteToWhitespaceCommand

Ctrl+Delete 누르면 공백기호만 삭제하는 기능.

  • 기호까지 모두 다 삭제하는 방식 대신,

유저 키맵에 아래 내용 추가

// 
// These key bindings override the ST 'delete_word' keys but use whatever keys you want.
// You could use `super+delete` and `super+backspace` and keep ST's delete keys intact.
// 
{ "keys": ["ctrl+delete"], "command": "delete_to_whitespace", "args": {"forwards": true} },
{ "keys": ["ctrl+backspace"], "command": "delete_to_whitespace", "args": {"forwards": false} },

아래 파일을 …/sublime-text-3/Packages/User/DeleteToWhitespace.py 로 저장

DeleteToWhitespace.py

윈도우즈 우측 컨텍스트 메뉴 추가

sublime3_contextmenu.bat
@echo off
 
SET st2Path=C:\App\sublime3\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
rem ** @reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3"         /t REG_SZ /v "" /d "Open with Sublime Text 3"   /f
rem ** @reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3"         /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f
rem ** @reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f
 
pause

기타

tool/sublime.txt · 마지막으로 수정됨: 2022/12/09 21:58 저자 kieuns