Things possible in Eclipse that aren’t possible in IntelliJ?(在 Eclipse 中可能发生在 IntelliJ 中不可能的事情?)
问题描述
我听过一些人发誓.两者都是功能齐全的优秀 IDE.但每个人的优势都略有不同.这并不意味着变成一场神圣的 IDE 战争.请对任何火焰诱饵答案投反对票.谢谢.
I have heard from people who swear by one or the other. Both are full-featured, excellent IDEs. But each has slightly different strengths. This is not meant to turn into a holy IDE war. Please downvote any flamebait answers. Thanks.
这是这个问题的类比.
推荐答案
我在 IDEA 中最喜欢的小烦恼(也是 Eclipse 中最喜欢的小功能)是键入左大括号时字符的定位(例如{")或一个分号.您必须在 Eclipse 中启用它(Window/Preferences/Java/Editor/Typing:自动在正确的位置插入:分号,大括号")
My favourite small annoyance in IDEA (and favourite small feature in Eclipse) is the positioning of the character when typing an opening curly brace (e.g. "{") or a semicolon. You'll have to enable it in Eclipse (Window/Preferences/Java/Editor/Typing: "Automatically insert at correct position: Semicolon, Braces")
这样只需提前输入(|"是插入符号的位置)
With this just type ahead ("|" is the caret position)
while(|
结果(还没有魔法)
while(|)
现在输入 true{,结果是
while(true) {|
如此简单,却如此强大.
So simple, yet so powerful.
另外,在(例如)
System.out.println("Hello world")
在该行中使用插入符号anywhere,键入分号将自动在行尾键入它.退格更正,就像您最喜欢的文字处理器中通常的自动更正一样.
with the caret anywhere in that line, typing a semicolon will automagically type it at the end of the line. Backspace corrects, just like the usual autocorrection in your favourite wordprocessor.
无价.在第一次尝试时,我物理上不再能够在正确的位置键入分号 :)
Priceless. I'm physically no longer able to type a semicolon at the correct position on first try :)
这篇关于在 Eclipse 中可能发生在 IntelliJ 中不可能的事情?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在 Eclipse 中可能发生在 IntelliJ 中不可能的事情?


- value & 是什么意思?0xff 在 Java 中做什么? 2022-01-01
- Java包名称中单词分隔符的约定是什么? 2022-01-01
- Jersey REST 客户端:发布多部分数据 2022-01-01
- Spring Boot连接到使用仲裁器运行的MongoDB副本集 2022-01-01
- Safepoint+stats 日志,输出 JDK12 中没有 vmop 操作 2022-01-01
- 从 finally 块返回时 Java 的奇怪行为 2022-01-01
- Eclipse 插件更新错误日志在哪里? 2022-01-01
- C++ 和 Java 进程之间的共享内存 2022-01-01
- 将log4j 1.2配置转换为log4j 2配置 2022-01-01
- 如何使用WebFilter实现授权头检查 2022-01-01