-
(2026) OpenAi Codex의 참조시 VsCode 커서 포커스 문제 해결Programming 2026. 2. 13. 17:48
Codex 사용시, 기본적으로 ctrl+shift+L 키를 누르면 선택한 내용이 ai chat으로 참조가 된다.
다만 현재, chat 창으로 focus가 이동하지 않아서 마우스로 한번 더 클릭해줘야 하는 문제가 발생한다.
이를 해결하는 방법을 설명한다 .
When using Codex, pressing Ctrl+Shift+L by default references the selected content to AI chat.
However, the focus currently doesn't move to the chat window, requiring a second mouse click.
This explains how to resolve this issue.#1. VsCode 에 multi-command 확장 설치
Install multi-command extension in vscode

#2. VsCode 에서 기 지정된 참조관련 단축키 모두 제거
Remove all preset reference-related shortcuts from VsCode
(Codex chat window -> [⚙] Settings -> Keyboard shortcuts)

#3. VsCode 에서 CTRL+P를 누르고 keybindings.json 파일열고 내용 추가
Press CTRL+P in VsCode, open the keybindings.json file, and add the below contents.
(Ctrl+shift+L can be mapped to any other key you want.)
{ "key": "ctrl+shift+l", "command": "extension.multiCommand.execute", "args": { "interval": 50, "sequence": [ "chatgpt.newChat", "chatgpt.addToThread" ] }, "when": "editorTextFocus" }, { "key": "ctrl+shift+l", "command": "extension.multiCommand.execute", "args": { "interval": 50, "sequence": [ "chatgpt.newChat", "chatgpt.addFileToThread" ] }, "when": "filesExplorerFocus" },#4. 위 파일내용중 동일한 키로 매핑된 다른 내용은 모두 삭제
- Delete all other 'same key' specifications to avoid key operation conflicts. in the above file.
'Programming' 카테고리의 다른 글
git submodule 파일 받아지지 않을때 (0) 2020.03.30 vscode 상단 타이틀 바에 경로 표시하기 (0) 2018.08.14 node.js, let's encrypt로 https 지원하기 (0) 2017.12.14 node.js mysql DATETIME 얻어올때 포맷 변경되는 현상 해결 (0) 2017.11.07 pebble2 javascript 개발환경 구축 (0) 2017.08.07