は実は、私はVSCode Macos拡張子を追加することが仕事をしていることが見つかりました:
私はちょうどsettings.json変更:(第一部分がある
{
"window.zoomLevel": 1,
"editor.fontSize": 11,
"terminal.integrated.fontSize": 11,
"macros": {
"execCurLn": [
"expandLineSelection",
"workbench.action.terminal.runSelectedText",
"cancelSelection"
]
}
}
て、コメントを追加しました純粋な@kwood &もう一度ありがとう)to keybindings.json
{
"key": "ctrl+enter",
"command": "workbench.action.terminal.runSelectedText",
"when": "editorTextFocus && editorHasSelection"
}
{
"key": "ctrl+enter",
"command": "macros.execCurLn",
"when": "editorTextFocus && !editorHasSelection"
},
{ "key": "ctrl+`", "command": "workbench.action.terminal.focus"},
{ "key": "ctrl+`", "command": "workbench.action.focusActiveEditorGroup", "when": "terminalFocus"}
https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runnerを見てください –
Aluan:少なくとも微調整が必要ですが、有望です。少なくとも私はそれをサンプルとして利用できるはずです。ありがとう、 – user6273920