q0987
q0987

Reputation: 35992

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?

Upvotes: 7

Views: 1140

Answers (3)

webcpu
webcpu

Reputation: 3432

  1. Go to: Preferences -> Editor -> General -> Virtual Space -> Show virtual space at file bottom

    Tick it. enter image description here

  2. Add a Keyboard Shortcut for Scroll line to middle. Ctrl+l enter image description here

Upvotes: 5

cfi
cfi

Reputation: 11300

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.

Upvotes: 7

CrazyCoder
CrazyCoder

Reputation: 402493

There is no such action in PyCharm, feel free to submit a feature request.

Upvotes: 1

Related Questions