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:
parent
62acf47540
commit
6cab6f75a8
13
.vscode/settings.json
vendored
13
.vscode/settings.json
vendored
@ -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"
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user