タイトルはそれをすべて言います、ビルドキャンセルは何もしません、コマンドパレットは何もしません、キーバインドは何もしません。これで設定からキーバインドを変更しました:
{ "keys": ["ctrl+alt+c"], "command": "cancel_build" },
独自の Python ターミナル ビルドを追加しました。
{
"target": "terminus_exec",
"cancel": "terminus_cancel_build",
"focus": true,
"cmd": ["python3", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
"env": {"PYTHONIOENCODING": "utf-8"},
"windows": {
"cmd": ["py", "-u", "$file"],
},
"variants":
[
{
"name": "Syntax Check",
"cmd": ["python3", "-m", "py_compile", "$file"],
"windows": {
"cmd": ["py", "-m", "py_compile", "$file"],
}
}
]
}
(私は崇高なテキストとコーディングにも本当に慣れていません)よろしくお願いします。編集: 私は Windows 10 を使用しています。Python インストーラーで [PATH に追加] オプションを選択しましたが、キーバインドを変更しても何も起こりません。これをテストファイルとして使用します:
while True:
print("Stop it!")