Cursor + Claude code: IDE is not connected

Hi, i solved this by opening cursor in WSL.

Within Terminal, cd to the path of the repo within WSL, will look something like /mnt/c/ and then open cursor from there (cursor .) with full path.

Hello, here is what I did and that worked for Windows users

  • Install WSL on Windows (many tutorials out there)
  • Move your current project to the root, on Ubuntu it’s ‘home/username’
  • move to that folder ‘cd home/username/my-project’
  • open cursor from that folder typing ‘cursor’
  • in cursor open the terminal and type ‘npm root -g’ to locate your node_modules folder, it will give you back a path like ‘/usr/local/lib/node_modules’
  • use that path to install the claude code extension ‘cursor --install-extension /usr/local/lib/node_modules/@anthropic-ai/claude-code/vendor/claude-code.vsix’
  • in cursor open the terminal and type ‘claude’
  • then in claude type ‘/ide’ and select cursor

Finally I found the solution.

  1. use find ~ -name "claude-code.vsix" to find out the vsix’s path in wsl, it looks like /home/usr/.npm-global/lib/node_modules/@anthropic-ai/claude-code/vendor/claude-code.vsix
  2. install it in powershell ,like cursor --install-extension \\wsl.localhost\Ubuntu\home\usr\.npm-global\lib\node_modules\@anthropic-ai\claude-code\vendor\claude-code.vsix
  3. open cursor (no matter from wsl or win),click remote button at the buttom left corner, and choose connect to wsl.
  4. click open folder, and open your project in windows using a path like /mnt/e/your/project/path
  5. now enter claude and /ide it will work.