12

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.

Community
  • 1
  • 1
turtlesoup
  • 3,188
  • 10
  • 36
  • 50

2 Answers2

13

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.

CrazyCoder
  • 389,263
  • 172
  • 990
  • 904
  • The jar file can no longer be accessed. The of this missing feature hasn't been fixed in a build yet. – silver est Apr 09 '18 at 12:59
  • Just stumbled upon this after searching for something similar. In case you're still looking, I wrote a plugin for Intellij that you might want to check out. Download it here: https://github.com/namarino41/intellij-tab-out. – namarino41 Aug 12 '18 at 03:40
  • @namarino this feature is now available out of the box, I've updated the answer. – CrazyCoder Aug 12 '18 at 04:12
  • At my company we've migrated from eclipse to idea and to ease the transition we're using the eclipse code formatter plugin for intellij. One of our formatting options is that we pad parentheses with a space. E.g. `methodInvocation( param1, param 2 );`. It appears that when using this combination of the eclipse code formatter, and this formatting style, tab to jump out doesn't work. Has anyone come across this or have a workaround? – ac84 Jul 30 '20 at 23:04
1

Just type in the closing bracket again, it will get you out of the bracket.

For example if you are typing "Sandeep", as soon as you enter ".. it will be like ""... then you enter rest of the text "sandeep".. and at the end type " again... it will take you out of the double quotes.

I have demonstrated above for double quotes , you can do the same for any brackets.