3

So, I have two pans in pycharm: the upper one shows the text editor and the lower one a (embeded) terminal window.

I can copy text from the upper pan and paste it in the lower pan (terminal) and it will run.

My question is, can I set up a keyboard short-cut to directly send a text selection to the terminal (not the python console, the terminal) and if yes, how?

user2413
  • 14,957

2 Answers2

1

You can just do this with the clipboard (Ctrl +C) then open the terminal with Alt+F12 then paste with Ctrl+V

You could wrap this up into a single command by defining a 'quicklist' in Setttings > Appearance & Behaviour > Quick Lists

Then assign that single key sequence using Keymaps which is in Settings

Amias
  • 5,359
0

This pycharm plugin should help.

https://plugins.jetbrains.com/plugin/9409-send-to-terminal

Edit: just tried. it does not work with pycharm terminal emulator. instead it pastes into external terminal.