Eclipse 中可能实现而 IntelliJ 中不可能的事情? [英] Things possible in Eclipse that aren’t possible in 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 中启用它(窗口/首选项/Java/编辑器/打字:在正确位置自动插入:分号、大括号")
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")
在该行中任何地方使用脱字符号,输入分号会自动在行尾输入分号.Backspace 更正,就像您最喜欢的文字处理器中通常的自动更正一样.
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 中不可能的事情?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!