# \`code .\` alias switches to use cursor when VSCode updates

**URL:** <https://forum.cursor.com/t/code-alias-switches-to-use-cursor-when-vscode-updates/55997>\
**Category:** Bug Reports\
**Created:** [February 26, 2025, 7:20pm UTC](https://forum.cursor.com/t/code-alias-switches-to-use-cursor-when-vscode-updates/55997 "2025-02-26T19:20:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![samibg](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/samibg/32/65059_2.png) [@samibg](https://forum.cursor.com/u/samibg)\
**Post date:** [February 26, 2025, 7:20pm UTC](https://forum.cursor.com/t/code-alias-switches-to-use-cursor-when-vscode-updates/55997/1 "2025-02-26T19:20:30Z")

</div>

I have disabled the `code .` command opening cursor. Occasionally, opening VSCode with `code .` causes some updates to VSCode which replaces some core files:

(base) …@Sami:~/myrepo$ code .  
Updating VS Code Server to version 906121b8c0bdf041c14a15dac228e66ab5505260  
Removing previous installation…  
Installing VS Code Server for x64 (906121b8c0bdf041c14a15dac228e66ab5505260)  
Downloading: 100%  
Unpacking: 100%  
Unpacked 4917 files and folders to /home/…/.cursor-server/bin/906121b8c0bdf041c14a15dac228e66ab55052

After that, `code .` reverts to opening Cursor. This is a problem because the WSL extension is broken with Cursor, so essentially this forces me to re-replace `code .` each time there’s an update to VSCode until Cursor properly works with WSL.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [March 28, 2025, 7:20pm UTC](https://forum.cursor.com/t/code-alias-switches-to-use-cursor-when-vscode-updates/55997/2 "2025-03-28T19:20:47Z")

</div>

Closed on March 28, 2025, 7:20pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
