0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-27 13:56:26 +00:00

chore: add code runner config

This commit is contained in:
Baoshuo Ren 2022-06-08 14:15:04 +08:00
parent 62acf47540
commit 6cab6f75a8
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

13
.vscode/settings.json vendored
View File

@ -84,5 +84,16 @@
"stop_token": "cpp"
},
"go.formatTool": "goformat",
"go.formatFlags": ["-style", "indent=4"]
"go.formatFlags": ["-style", "indent=4"],
"code-runner.fileDirectoryAsCwd": true,
"code-runner.runInTerminal": true,
"code-runner.executorMap": {
"c": "gcc $fileName -o $fileNameWithoutExt.exe -O2 -lm && ./$fileNameWithoutExt.exe",
"cpp": "g++ --std=c++14 $fileName -o $fileNameWithoutExt.exe -O2 -lm -fsanitize=address,undefined -fno-ms-extensions -Wall && ./$fileNameWithoutExt.exe",
"python": "python -u $fileName",
"go": "go run $fileName",
"javascript": "node $fileName",
"typescript": "ts-node $fileName",
"rust": "rustc $fileName -o $fileNameWithoutExt.exe && ./$fileNameWithoutExt.exe"
},
}