File tree Expand file tree Collapse file tree 2 files changed +6
-48
lines changed Expand file tree Collapse file tree 2 files changed +6
-48
lines changed Original file line number Diff line number Diff line change 11{
22 "version" : " 2.0.0" ,
33 "tasks" : [
4- {
5- "label" : " competitiveNew" ,
6- "type" : " shell" ,
7- "command" : " /bin/bash scripts/new.sh" ,
8- "presentation" : {
9- "reveal" : " always" ,
10- "focus" : true ,
11- "panel" : " shared"
12- }
13- },
14- // {
15- // "label": "competitiveCompile",
16- // "type": "shell",
17- // "command": "/bin/bash scripts/compile.sh ${fileDirname}",
18- // "presentation": {
19- // "reveal": "always",
20- // "focus": true,
21- // "panel": "shared"
22- // }
23- // },
244 { // テスト実行(online-judge)
255 "label" : " competitiveTestSample" ,
266 "type" : " shell" ,
3111 "panel" : " shared"
3212 }
3313 },
34- // {
35- // "label": "competitiveSubmit",
36- // "type": "shell",
37- // "command": "/bin/bash scripts/submit.sh ${fileDirname}",
38- // "presentation": {
39- // "reveal": "always",
40- // "focus": true,
41- // "panel": "shared"
42- // }
43- // },
4414 { // コンパイル (C++17)
4515 "type" : " shell" ,
4616 "label" : " build kyopro C++17" ,
5121 " -std=gnu++17" ,
5222 " -march=native" ,
5323 " -mtune=native" ,
54- // "main.cpp",
5524 " ${relativeFile}"
5625 ],
5726 "group" : {
Original file line number Diff line number Diff line change 55## Requirements
66- Docker
77- VS Code
8+ - extensions: Remote Contaiers
89
910## How to install
10- - Dockerfileからイメージをビルド
11- ` docker-compose build `
11+ 1 . Remote Containersを実行
12+ ` Remote-Containers: Reopen in Container `
1213
13- - Dockerコンテナを作成
14- ` docker-compose up -d `
15-
16- - init.shを実行
17- ` docker-compose exec atcoder bash `
14+ 2 . init.shを実行
1815` /bin/bash /root/init.sh `
1916
2017## How to use
21- - new.sh ディレクトリの作成
22- - compile.sh main.cppのコンパイル
23- - test.sh online-judge toolsでテスト
24- - submit.sh atcoder-cliからテスト
25-
26- ## Other
27- - tasks.jsonをvscodeでキーバインドしておくと上記スクリプトがショートカットから実行出来て便利です。
28-
29- ## Shortcuts(個別に設定が必要)
3018- コンパイル:Ctrl + Shift + B
31- - テスト:Ctrl + T
19+ - テスト:Ctrl + T
20+ テストのショートカットはkeybindings.jsonで設定が必要
You can’t perform that action at this time.
0 commit comments