Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to jump out of brackets in IntelliJ IDEA

Does IntelliJ have the ability to tab out of auto-completed brackets? As in, when you press "tab" key near a closing bracket, the cursor will jump over it instead of adding a new tab. This is a pretty standard feature in Eclipse. In IntelliJ IDEA you must use arrow keys to do so.

Similar question was asked 4 years ago here, but maybe 4 year isn't enough time to complete this complex feature, so I'm asking again.

like image 224
turtlesoup Avatar asked Feb 15 '17 21:02

turtlesoup


People also ask

How do I use jump function in IntelliJ?

To jump to the next or previous found issue in your code, press F2 or Shift+F2 respectively. Alternatively, from the main menu, select Navigate | Next / Previous Highlighted Error. IntelliJ IDEA places the caret immediately before the code issue.

How do I jump to the next line in IntelliJ?

Press ⌥⇧↑ (macOS), or Alt+Shift+Up Arrow (Windows/Linux), to move a line up. To move a line down use ⌥⇧↓ (macOS), or Alt+Shift+Down Arrow (Windows/Linux).

How do I go back to previous line in IntelliJ?

Use ⌘[ (macOS), Ctrl+Alt+Left Arrow (Windows/Linux) to navigate backwards and ⌘] (macOS), Ctrl+Alt+Right Arrow (Windows/Linux), to navigate forwards.


1 Answers

UPDATE:

Initial implementation for this feature is available starting from IntelliJ IDEA 2018.2 version. It works more like in MS Visual Studio - without visual indication of tab 'exit' position. For now, it should work in Java, SQL, Python and some other files. It will take some time for other languages to catch up - some language-specific code changes are required. The feature is disabled by default, you can enable it in:

Settings (Preferences on Mac)| Editor | General | Smart Keys | Jump outside closing bracket/quote with Tab.


Original answer:

Nothing new since the original question was submitted, except a third-party plug-in that was started by one of the users.

For some reason the author didn't release a binary version of the plug-in yet.

I went ahead and built the plug-in, you can get the jar file here.

Copy it into the IDE plugins folder, restart IDEA and use Shift+Space.

Keyboard shortcut can be changed in the Keymap settings:

shortcut

Feature requests and bug reports should go here.

like image 167
CrazyCoder Avatar answered Oct 27 '22 19:10

CrazyCoder