vscode
当运行程序时出现了 if ($?) {gcc a.c -o a}; if ($?) {.\a}然后下方的输出框瞬间消失 请问是什么情况阿 发一下全局的settings.json配置 kogawananari 发表于 2021-4-2 01:29发一下全局的settings.json配置
不知道怎么发图片啊 安东尼11 发表于 2021-4-2 16:34
不知道怎么发图片啊
文本也行 kogawananari 发表于 2021-4-2 17:31
文本也行
{
"python.defaultInterpreterPath": "C:\\Users\\86188\\AppData\\Local\\Programs\\Python\\Python39\\python.exe",
"C_Cpp.updateChannel": "Insiders",
"C_Cpp.autocomplete": "Disabled",
"workbench.editorAssociations": [
{
"viewType": "jupyter.notebook.ipynb",
"filenamePattern": "*.ipynb"
}
],
"code-runner.runInTerminal": true,
"workbench.colorTheme": "Visual Studio Dark",
"launch": {
"configurations": [],
"compounds": []
}
}
昨天有点事 忘看了 抱歉 安东尼11 发表于 2021-4-4 11:10
{
"python.defaultInterpreterPath": "C:\%users\\86188\\AppData\\Local\\Programs\\Python\\Pytho ...
//"code-runner.runInTerminal": true,
//如果不开启 无法接受键盘输入
//如果开启 下列命令里 标记“&&”需要改为使用分号“;”
"code-runner.executorMap": {
"javascript": "node",
"java": "cd $dir && javac $fileName && java $fileNameWithoutExt",
"c": "cd $dir && gcc $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"objective-c": "cd $dir && gcc -framework Cocoa $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"php": "php",
"python": "set PYTHONIOENCODING=utf8 && python",
"perl": "perl",
"perl6": "perl6",
"ruby": "ruby",
"go": "go run",
"lua": "lua",
"groovy": "groovy",
"powershell": "powershell -ExecutionPolicy ByPass -File",
"bat": "cmd /c",
"shellscript": "bash",
"fsharp": "fsi",
"csharp": "scriptcs",
"vbscript": "cscript //Nologo",
"typescript": "ts-node",
"coffeescript": "coffee",
"scala": "scala",
"swift": "swift",
"julia": "julia",
"crystal": "crystal",
"ocaml": "ocaml",
"r": "Rscript",
"applescript": "osascript",
"clojure": "lein exec",
"haxe": "haxe --cwd $dirWithoutTrailingSlash --run $fileNameWithoutExt",
"rust": "cd $dir && rustc $fileName && $dir$fileNameWithoutExt",
"racket": "racket",
"scheme": "csi -script",
"ahk": "autohotkey",
"autoit": "autoit3",
"dart": "dart",
"pascal": "cd $dir && fpc $fileName && $dir$fileNameWithoutExt",
"d": "cd $dir && dmd $fileName && $dir$fileNameWithoutExt",
"haskell": "runhaskell",
"nim": "nim compile --verbosity:0 --hints:off --run",
"lisp": "sbcl --script",
"kit": "kitc --run",
"v": "v run",
"sass": "sass --style expanded",
"scss": "scss --style expanded",
"less": "cd $dir && lessc $fileName $fileNameWithoutExt.css"
}, kogawananari 发表于 2021-4-4 12:13
就这样修改吗? 安东尼11 发表于 2021-4-4 15:59
就这样修改吗?
"code-runner.runInTerminal": true,这个最好注释掉 注释掉之后getchar这种函数用不了了 其他的还好 只能输出不能输入 用vs code config helper一建修复
页:
[1]