In Windows you can use the 'start' command to open a folder, example:
c:\Users\someone>start c:\Projects
Also you can open directly a Visual Studio project with it like this:
c:\Users\someone>start c:\Projects\MyProject\MyProject.sln
And there is a lot more, just see the help for 'start'
I've tested with start from WSL2 and doesn't work.
start
start . zsh: command not found: start
I think only works with the default Windows console.
I've changed the title to avoid confusion.
cd ~
nano .zshrc
And add this alias code at the end of the line:
alias code="/mnt/c/Program\ Files/Microsoft\ VS\ Code/Code.exe
Save the file (ctrl + x) and exit.
code .
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
In Windows you can use the 'start' command to open a folder, example:
c:\Users\someone>start c:\Projects
Also you can open directly a Visual Studio project with it like this:
c:\Users\someone>start c:\Projects\MyProject\MyProject.sln
And there is a lot more, just see the help for 'start'
I've tested with
start
from WSL2 and doesn't work.I think only works with the default Windows console.
I've changed the title to avoid confusion.
And add this alias code at the end of the line:
Save the file (ctrl + x) and exit.