기존 사용하던 VSCode에서 Cursor로 전환하면서 사용하게 될 단축키와 설정 값에 대해 정리해보았다.
자동으로 다음 줄 혹은 블록을 제안한다. 수락 시 TAB키 활용
CMD+K, CMD+I, CMD+L 등 무슨 차이인가?
K는 빠른 AI명령이 가능하고, @심볼명 을 태그하여 코드 참조가 가능하다.
I는 인라인 채팅(기본적으로 작업 중 인 코드 참조하며, 코드 수정도 같이 해주며 더 긴밀한 코드 분석 및 제안을 해준다.)
L는 일반적인 채팅(코드 컨텍스트 참조가 아닌, 코드 제안은 하지만 수정할 수 없는 채팅)
// 키 바인딩을 이 파일에 넣어서 기본값 재정의
[
{
"key": "ctrl+;",
"command": "terminal.focus",
"when": "editorFocus"
},
{
"key": "ctrl+;",
"command": "workbench.action.focusActiveEditorGroup",
"when": "terminalFocus"
},
{
"key": "ctrl+;",
"command": "workbench.action.focusActiveEditorGroup",
"when": "explorerViewletFocus"
},
{
"key": "ctrl+d",
"command": "explorer.newFolder",
"when": "explorerViewletFocus"
},
{
"key": "ctrl+f",
"command": "explorer.newFile",
"when": "explorerViewletFocus"
},
{
"key": "ctrl+[Backquote]",
"command": "workbench.action.toggleMaximizedPanel",
"when": "terminalFocus"
},
{
"key": "ctrl+e",
"command": "-cursorLineEnd",
"when": "textInputFocus"
},
{
"key": "ctrl+e",
"command": "editor.action.showHover",
"when": "editorTextFocus"
},
{
"key": "cmd+r cmd+i",
"command": "-editor.action.showHover",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+enter",
"command": "editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus"
},
{
"key": "f12",
"command": "-editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus"
}
]
CLI alias
alias rnios="npx react-native run-ios --simulator 'iPhone SE (3rd generation)'"
alias rnmyios="npx react-native run-ios"
alias rnand="npx react-native run-android"
alias rncache="npx react-native start --reset-cache"