简体   繁体   中英

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.

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:

捷径

Feature requests and bug reports should go here .

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM