Comment actions Permalink

If you wanted a fast, simple, rather brash solution that doesn't muck around with settings, plugins, extra ; characters, nor modifies your current keymap bindings, nor gives you yet another key binding to have to remember etc, this is what I do:

I just use a shell script to automatically run the following python script in separate terminal when i start pycharm or another intellij IDE.

import pyautogui
import time

while True:
pyautogui.hotkey('ctrl', 'alt', 'l') # or the hotkey for another os

# lower sleep as you need

in terms of productivity and practicality, this is the simplest, least intrusive, and most automated method I've personally found thus far. Sure it might run when I'm in another window once in a while, and uses up some memory, but for my work its not an issue. If you need to have all your processing power freed up, then suggest using other solutions.


Please sign in to leave a comment.