본문 바로가기

기타

[기타] Mac에서 Home 및 End 키가 Windows처럼 작동하도록 설정

728x90

Mac에서 Home 및 End 키가 Windows처럼 작동하도록 설정

 

mkdir -p ~/Library/KeyBindings
vim ~/Library/KeyBindings/DefaultKeyBinding.dict
{
/* Remap Home / End keys */

/* Home Button*/
"\UF729" = "moveToBeginningOfLine:";

/* End Button */
"\UF72B" = "moveToEndOfLine:";

/* Shift + Home Button */
"$\UF729" = "moveToBeginningOfLineAndModifySelection:";

/* Shift + End Button */
"$\UF72B" = "moveToEndOfLineAndModifySelection:";

/* Ctrl + Home Button */
"^\UF729" = "moveToBeginningOfDocument:";

/* Ctrl + End Button */
"^\UF72B" = "moveToEndOfDocument:";

/* Shift + Ctrl + Home Button */
"$^\UF729" = "moveToBeginningOfDocumentAndModifySelection:";

/* Shift + Ctrl + End Button*/
"$^\UF72B" = "moveToEndOfDocumentAndModifySelection:";
}

 

- 참고사이트

https://forums.macrumors.com/threads/make-home-end-keys-behave-like-windows-on-mac-big-sur.2277958/

 

 

728x90