在IntelliJ中无法实现Eclipse的事情? [英] Things possible in Eclipse that aren’t possible in IntelliJ?

查看:120
本文介绍了在IntelliJ中无法实现Eclipse的事情?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我听到有人发誓的人。两者都是全功能,优秀的IDE。但每个优势都略有不同。这不意味着变成一场圣洁的IDE战争。请降低任何火焰的答案。谢谢。



这是这个问题

解决方案

我最喜欢的小烦恼在IDEA(和最喜欢的小在Eclipse中的功能)是打字时(例如{)或分号键入字符的位置。你必须在Eclipse中启用它(Window / Preferences / Java / Editor / Typing:自动插入正确的位置:分号,大括号)



在前面输入(|是插入位置)

  while(| 
/ pre

  while( |)

现在输入 true {,结果

  while(true){| 


$ b $



另外,在(例如)

  System.out.println(Hello world)

与插入符号<在这行中的任何地方中,输入分号将在行尾自动键入。Backspace会像您最喜欢的wordprocessor中的通常自动更正一样修正。



无价值,我实际上不能在第一次尝试时在正确的位置输入分号:)


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.

This is the analog of this question.

解决方案

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(|

results (no magic yet) in

while(|)

now type true{, results in

while(true) {|

So simple, yet so powerful.

Also, in (e.g.)

System.out.println("Hello world")

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 :)

这篇关于在IntelliJ中无法实现Eclipse的事情?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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