如何在IntelliJ IDEA中跳出括号 [英] How to jump out of brackets in IntelliJ IDEA

查看:605
本文介绍了如何在IntelliJ IDEA中跳出括号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

IntelliJ是否可以跳出自动完成的括号?如图所示,当您按下右括号附近的制表符键时,光标将跳到其上方,而不是添加新的制表符。这是Eclipse中非常标准的功能。在IntelliJ IDEA中,您必须使用箭头键来这样做。



4年前曾问过类似的问题



功能请求和错误报告应该去这里


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.

这篇关于如何在IntelliJ IDEA中跳出括号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆