Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to scroll current line to the center of screen in PyCharm 1.5.4 with emacs keymap

I try to figure out how to center the current line in the center through PyCharm. The default key binding of emacs is C-u C-l but it doesn't work in PyCharm.

Any suggestion?

like image 797
q0987 Avatar asked Oct 13 '11 15:10

q0987


1 Answers

The default key binding for this is CTRL-M.

Go to File -> Settings, then Keymap, then Editor Actions -> Scroll to Center. There you find the feature, and you can remap it to any other binding.

This is an Intellij-Idea IDE feature and not limited to the PyCharm editor.

like image 133
cfi Avatar answered Oct 10 '22 08:10

cfi