vscode-code-runner
vscode-code-runner copied to clipboard
preserveFocus didnot work when runInTerminal set true and Terminal appeared
- VS Code Version: 1.52.1
- OS Version: MacOS 11.1
- Code Runner Version: 0.11.2
1.set preserveFocus and runInTerminal are true 2.close panel to ensure the terminal is hidden 3.run any code file 4.run finished everything is ok and the cursor is focused on the code editor 5.run again 6.cursor focused on terminal
Did you set "code-runner.clearPreviousOutput": true ? Try to change to false.
Did you set "code-runner.clearPreviousOutput": true ? Try to change to false.
Yes keep previous output is worked. Can runner take focus back to editor after clear output?
Hello there. I am also a mac user.
Here's my similar problem:
When set "code-runner.clearPreviousOutput": false
, I am able to preserve the focus on the editor.
However, when set "code-runner.clearPreviousOutput": true
, there is no way to perserve the focus.
Maybe you can try:
- set "code-runner.clearPreviousOutput" = false
- open setting.json, set "code-runner.executorMap": { "python": "clear && python "} other languages are same
Hey! If some of you really care I just published extension with quick workaround for this https://marketplace.visualstudio.com/items?itemName=zardoy.terminal-code-runner