Resources 📚


How to fix the code command not working when using tmux in the integrated terminal of VSCode

Solution: Tmux code command fix - ChatGPT

Summary: Check and copy the value of the VSCODE_IPC_HOOK_CLI environment variable via

export -p | grep -i vscode

Copy it and export the correct value inside the tmux session:

export VSCODE_IPC_HOOK_CLI="${WHATEVER_THE_IPC_SOCKET_PATH_WAS.sock}"

For example, the previous line could look like:

export VSCODE_IPC_HOOK_CLI="/run/user/1046/vscode-ipc-7c5f0793-10fa-4852-a65f-0d36365fb9b0.sock"