Mac の Visual Studio Code で C/C++/C# を実行するに従ってC#のプログラムをVisualStudioCodeのアウトプットに出力しようと思ったのですが、以下のようにエラーが出てしまいうまくいきません。
/bin/sh: /Users/名前/VisualCodeRunner/csrun.sh: Permission denied Exited with status 126
どうすればいいでしょうか?
###環境
macOS Sierra 10.1.1
Visual Studio Code 1.8.1
###やったこと
Visual Studio Codeの拡張機能のRunnerをダウンロードし、setting.json
に以下のように記述しました。
{ "runner.languageMap": {"csharp" : "~/VisualCodeRunner/csrun.sh"} }
またVisualCodeRunnerディレクトリに作ったcsrun.sh
ファイルを以下のように編集しました。
#!/bin/sh mcs $1 -out:out.exe mono out.exe rm out.exe
また以下のようにショートカットを追加しました。
[ { "key": "cmd+shift+r", "command": "extension.runner.start", "when": "editorTextFocus" }, { "key": "cmd+shift+t", "command": "extension.runner.stop" } ]
あなたの回答
tips
プレビュー