I'm getting started with creating my own VS Code extension by following this tutorial. After installing Yeoman and walking through the prompts, I'm told I can change directories to my extension with cd identifier
:
To start editing with Visual Studio Code, use the following commands:
cd identifier code-insiders .
After doing so, I came to learn that it didn't open the folder it had created, and, I had no idea where it put it. I did, have a relative path however, which was a start:
ComputerInfo ~/identifier
$
I was able to discover that this maps to my user folder on the machine by executing:
dirs ~/
However, this feels a bit "hackish" since I got an error, and that's what gave me the path:
ComputerInfo ~/identifier
$ dirs ~/
bash: dirs: /c/Users/Taco/: invalid option
dirs: usage: dirs [-clpv] [+N] [-N]
How can I properly determine the directory for ~/
in the VS Code terminal?