PyCharm: Switch between code and Run / Terminal using CapsLock-u and CapsLock-n

I would like to switch between Code and Run / Terminal using CapsLock-u and CapsLock-n in PyCharm.

On my keyboard, u is at the top and n is at the bottom, this gives me a good way to remember this.

I do not know how to configure my Ubuntu 16.04 desktop (unity) like this.

+1
ubuntu pycharm keyboard-shortcuts desktop
source share
1 answer

I have a solution that uses the pycharm switch.

Please note that in my current window setup I have a terminal as the fifth window on the screen, which may differ from your case. This also applies to Pycharm 2016.3.

  • Go to Edit> Macros> Start Macro.
  • Now pycharm will record your keystrokes.
  • Press Ctrl + Tab . Go to Edit> Macros> Stop Macro. Give it a name, for example: go to code
  • To record the second macro: repeat steps 1 to 3, but now record: Ctrl + Tab, release the tab without releasing Ctrl and press 5 (or whatever for your terminal on the switch screen) .
  • Go to the menu "File"> "Settings"> "Keyboard" scroll down to the folder named "Macros". Left-click on the name> add keyboard shortcut> Write down your ex shortcut: Caps Lock + u

Now you can use key bindings to play the macro on pycharm. If you ever change the layout of your window, be sure to also update the macros!

Good luck :)

+2
source share

All Articles