Intellij New line on current line shortcut
Is there a keyboar开发者_JS百科d shortcut to start a new line on the currently selected line?
I.e. The current line goes down one line and the cursor is on a blank line.
There is Shift + Enter which starts a new line but on the next line. I want the current line.
CTRL+ALT+ENTER was the right shortcut for me (version 12.1.6).
CTRL+SHIFT+ENTER works as of 11.2.
On mac this works for me:
⌘+ ⌥ + ↵
There isn't one, but you can very easily create it using a macro. In order to create the macro you can follow these steps:
- Place the cursor on any line with code.
- Click on menu Tools | Start Macro Recording
- Press: Home -> Enter -> Up
- Click on menu Tools | Stop Macro Recording
- Test your macro using Tools | Playback Last Macro
- You can remove any action from the macro that doesn't belong there by using Tools | Edit Macros.
- When the macro is working fine you can assign a shortcut to it in the Settings window on the Keymap page.
Do not think anything exists in version IntelliJ 8 or 9 for that matter. Prove me wrong.
精彩评论