How to move out of auto-completed brackets in IntelliJ IDEA (without using the arrow keys)?

前端 未结 10 630
遥遥无期
遥遥无期 2020-11-28 03:04

I recently switched from Eclipse to IntelliJ IDEA, and found myself wondering how to move the cursor out of a pair of auto-completed brackets.

In Eclipse after I fin

相关标签:
10条回答
  • 2020-11-28 03:29

    Such key is called "End".

    You can assign any unused shortcut to "Move Caret to Line End" action in "Settings/Preferences | Keymap".

    P.S. You can use Ctrl+Shift+Enter to complete your statement (in your case it will place caret at the end of line and will add ";" there) -- action called "Complete Current Statement" and shortcut can be checked/changed in a same way as described earlier.

    0 讨论(0)
  • 2020-11-28 03:31

    Intellij supports the ctrl+shift+m shortcut that jumps to the end of the block:

    https://www.jetbrains.com/help/idea/2016.2/navigating-to-braces.html

    0 讨论(0)
  • 2020-11-28 03:32

    It's not quite what you're looking for, but you can type the character you are trying to move outside of (a closing paren, for example) and that should pop you outside of the auto-completed character.

    Not ideal, but functional as far as I've tested it.

    0 讨论(0)
  • 2020-11-28 03:35

    If you decide to move back to Eclipse and use PyDev this feature by default is disabled, First Switch to PyDev Perspective and you can enable it by going under Preferences>PyDev>Editor>Typing>Enable link on Automatic parenthesis or literals closing

    0 讨论(0)
提交回复
热议问题