// https://code.visualstudio.com/docs/editor/variables-reference
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"command": "powershell",
"tasks": [
{
"label": "sakura",
"type": "shell",
"command": "C:\\Program Files (x86)\\sakura\\sakura.exe",
"args": ["${file}", "-Y=${lineNumber}"],
"problemMatcher": [],
"detail": "sakuraで開く",
"presentation": {
"echo": true,
"reveal": "silent", // パネル表示に関わる(エラーの場合表示)
"focus": false, // パネルのフォーカス
"panel": "shared", // shared: 既存のパネルを使う
"showReuseMessage": true, // 既存のタスクがある場合、再利用するかどうか
"clear": false // 出力パネルをクリアするかどうか
}
},
{
"label": "name",
"type": "shell",
"command": "Set-Clipboard",
"args": ["${fileBasename}"],
"problemMatcher": [],
"detail": "ファイル名をクリップボードにコピー",
"presentation": {
"echo": true,
"reveal": "silent",
"focus": false,
"panel": "shared",
"showReuseMessage": true,
"clear": false
}
},
{
"label": "dir",
"type": "shell",
"command": "Set-Clipboard",
"args": ["${fileDirname}"],
"problemMatcher": [],
"detail": "開いているファイルパスをコピー",
"presentation": {
"echo": true,
"reveal": "silent",
"focus": false,
"panel": "shared",
"showReuseMessage": true,
"clear": false
}
}
]
}