vscode-code-runner icon indicating copy to clipboard operation
vscode-code-runner copied to clipboard

[Feature request] Run code just in the present terminal tab

Open alanyoungCN opened this issue 4 years ago • 4 comments

I want to run the terminal commands in the present terminal tab rather than creating a new one. When I run a Python code, the plugin will always create a new terminal tab called "Code" to execute the codes, which makes me wait for a long time because the conda needs to init when creating a new terminal tab. Why can't the plugin just run the terminal commands in the present terminal tab?

For example, when I press Ctrl+Alt+N in a Python file with an existing terminal at the bottom, the 'python xxx.py' command will be executed just in the existing terminal rather than creating a new one.

alanyoungCN avatar Apr 13 '21 08:04 alanyoungCN

Can anyone think about this issue or just tell me how to avoid this unpleasant feature?

alanyoungCN avatar Aug 18 '21 07:08 alanyoungCN

I have the same problem.

hamad12a avatar Jan 08 '22 16:01 hamad12a

@hamad12a That's awesome! But how to use your branch in VS Code? I didn't do that before.

alanyoungCN avatar Feb 14 '22 16:02 alanyoungCN

@alanyoungCN on my side, I downloaded the source code then edited the code as in https://github.com/formulahendry/vscode-code-runner/pull/905/commits/e8e1561bf57f972a591790b28de777bb4b5c0646 then I rebuilt or "repacked" the extension using the guidelines of this page https://code.visualstudio.com/api/working-with-extensions/publishing-extension.

hamad12a avatar Feb 14 '22 18:02 hamad12a