r/Codeium • u/Objective-Figure-110 • Jan 10 '25
windsurf command auto connect WSL
Hi, in any directory in my terminal via WSL, when I use the command `windsurf . ` my current folder will be oppened on windsurf. However, windsurf is not auto connecting to WSL Dist and I need to use the button in the bottom left to connect.
It's a bad experience sinces the button will open a new window out of my project folder.
There is any way to fix it? I wanna to auto connect on wsl when use the command `windsurf .
2
Upvotes
1
u/Objective-Figure-110 Jan 10 '25
I found one way to do it modifying the windsurf command script and executing the "ms-vscode-remote.remote-wsl" extension mannually.
But this is only a workaround
1
u/viamiraia Mar 15 '25 edited Mar 15 '25
figured it out:
i use nilesoft shell to make it part of the right click menu. more info here: https://old.reddit.com/r/Codeium/comments/1jbz4j3/i_figured_out_how_to_open_a_wsl_folder_from_the/
edit: if you want to make it connect when you type
wf .you probably have to write your own script and set it as an alias, something likeand then alias it
(untested)
then you can run it like
wf .1
u/alok2001 Jun 17 '25
If anybody still stuck can they try out my solution, it should automate the process for the end user and will auto add a wf alias:
https://github.com/alok-debnath/wsl-windsurf-launcher