formulahendry / vscode-code-runner

Code Runner for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner
MIT License
2.21k stars 296 forks source link

How to run a new language code with code-runner ? #549

Open kcvinker opened 5 years ago

kcvinker commented 5 years ago

Hi, I would like to run V programming language code in code-runner. How to do it ? I can simply run a v code in my cmd like this. "v run filename.v" Is it possible to do this with code runner ?

kcvinker commented 5 years ago

Well, I have solved it partially. I got some help materials from this git page. Thanks a lot. What i did is -

  1. I tried to the code-runner.executorMapByFileExtension": { ".v" : v run $fullFileName"} but it didnt worked bcz there are spaces in my file path. Although you suggested that to wrap the file file path with "/"" it didnt worked.
  2. So i changed it to $fileName and then opened the folder ( in which the file resides) in vs code. Now all are working perfect. But i would like to know if it is possible without opening the entire folder in vs code. Captured_000068