自动完成后如何阻止IntelliJ放置分号? [英] How to stop IntelliJ from placing semicolons after an auto-completion?

查看:201
本文介绍了自动完成后如何阻止IntelliJ放置分号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以这很烦我,因为我使用制表符留下了括号等,并且当我使用自动完成功能并且在括号之后放置了分号时,会发生这种情况:

so this is annoying me because I use tab to leave brackets etc and when I use auto-complete and a semicolon is being placed after the bracket this happens:

https://streamable.com/i9as2

如您在第一条语句中看到的那样,我在分号上跳转"时遇到问题,而当我在第二条语句中不使用自动完成功能(并且不自动获得分号)时,导航起来会更容易通过选项卡通过它.我知道这里有shift-enter快捷键,但是我真的不想发展使用它的习惯,因为我可以想象在与其他IDE一起工作时尝试这样做会变得很烦人.我搜索了这些选项,但没有找到任何禁用该行为的选项.有人知道解决这个问题的方法吗?

as you can see in the first statement I'm having problems "jumping" over the semicolon while when I dont use the auto-completion in the second statement (and don't get the semicolon automatically) it's way easier to navigate through it with tab. I know that there is the shift-enter shortcut but I don't really want to develop a habbit of using it so often because I can imagine trying to do that when working with my other IDE's can become quite annoying. I searched through the options but did not find any option do disable that behavior. Does anyone know a way to get around this?

推荐答案

第二个Tab键应在分号后跳转,我已经为此创建了功能请求.

Second Tab press should jump after the semicolon, I've created a feature request for that.

它已经修复,该修复程序将从2019.2 IDE版本开始可用.

It's already fixed and the fix will be available starting from 2019.2 IDE version.

这篇关于自动完成后如何阻止IntelliJ放置分号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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