Closed pwmcintyre closed 8 years ago
Hi @pwmcintyre , sorry the support for this scenario is limited in this extension, but you could try this extension: Code Runner. You could set working directory in config, otherwise it use the path of root folder open in VS Code. Also, you could use cd %~dp0
to change the directory. Moreover, this extension's function has merged into Code Runner and more support will be applied in Code Runner. If you have more requests, you could submit request in Code Runner extension repo :smiley:
Let's say i'm working on a project in Code and I have a folder open. Then I have a run.sh file open hit the 'run' command. I'd assume a command like 'pwd' in unix or 'dir' in Windows to return that folder
At the moment 'pwd' returns / so trying to do a 'mkdir temp' fails with permissions issues