有关IntelliJ到Eclipse转换的问题 [英] Questions about IntelliJ to Eclipse transition

查看:169
本文介绍了有关IntelliJ到Eclipse转换的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始使用eclipse进行一些个人项目,并且发现了IntelliJ(我在工作中使用的)这种烦人的过渡。我希望在同一个主题中提出几个不同的问题。这里:

I just started using eclipse for some personal projects and am finding the transition from IntelliJ (what I use at work) kind of annoying. I hope it's kosher to ask a few different questions in the same thread. Here goes:

1)如何获取视图(我不知道这是否是术语,我的意思是Windows,如Project Explorer,服务器,控制台等等)保持扩展和顶部,即使我点击了编辑器或另一个视图后。我很确定,现在所有这些选项卡都是快速视图,我已经最小化,然后停靠,所以我可能没有这样做开始。在IntelliJ中,我只是将标签固定。

1) How do I get "views" (I'm not sure if this is the term. I mean windows such as Project Explorer, Servers, Console, etc) to stay expanded and on top even after I've clicked back on the editor or another view. I'm pretty sure that right now all of these tabs are "quick views" that I have minimized and then docked, so I may not be doing this right to begin with. In IntelliJ, I would simply just pin the tab.

2)如何打开文件(例如,ant build.xml),而不必使其成为部分的日食项目?我想要IDE将给我的语法高亮和Ctrl-Click功能(更不用说能够使用eclipse的内置ant),但是我不需要将文件与任何其他文件关联,因此看不到这是必须使其成为项目的一部分。

2) How can I open a file (for instance, an ant build.xml) without having to make it part of an eclipse project? I want the syntax highlighting and Ctrl-click ability that the IDE will give me (not to mention being able to use eclipse's built-in ant), but I don't need to associate the file with any others and so don't see the point of having to make it a part of a project.

3)它只是我(不会惊讶)或eclipse有一个解决空的错误html标签内的html标签的相同类型。我只是在一个JSP中测试过,而JSF标签并不会发生这种情况。例如:< div id =foo>< div id =bar/>< / div> 。 Eclipse会发出警告,表示第一个div标签没有结束标签。这是使用最新版本的eclipse for Java EE,没有安装插件。

3) Is it just me (wouldn't be surprised) or does eclipse have a bug with parsing empty html tags within the body of html tags of the same type. I've only tested this in a JSP, and it doesn't happen with JSF tags. For example: <div id="foo"><div id="bar"/></div>. Eclipse will give a warning saying the first div tag has no end tag. This is with the most recent version of eclipse for Java EE, no plugins have been installed.

4)最后一个一般问题:任何最佳做法或资源来查看用于组织eclipse界面和视角/视图?工作空间/项目怎么办?有没有一些教程,真的很有帮助,我可以在不到一个小时内阅读?

4) Finally, a general question: Any best practices or resources to look at for organizing the eclipse interface and perspectives/views? What about workspaces/projects? Is there some tutorial out there that would be really informative that I could read through in less than an hour?

我感谢任何答案和提示/技巧。

I appreciate any answers and tips/tricks.

推荐答案

首先,请承认世界上有不同的人,有些人不工作Eclipse的方式。即使我已经支付了(我也是),我不能与IDEA一起工作。所以如果Eclipse磨擦你错误的方法,它可能不适合你。那就是你的答案:

First of all, please acknowledge that there are different people in the world and there are people who don't work the "Eclipse way". Even if I was paid for it (and I am), I couldn't work with IDEA. So if Eclipse rubs you the wrong way, it may not be for you. That out of the way, your answers:


  1. 在Eclipse中,你打开一个视图,让它保持原来的位置。在IDEA中,视图一直变化,事情弹出并消失。 Eclipse是静态的,除非你特意移动。有两种方法来移动事物:您可以最小化一个部分(一部分是包含标签视图的部分)。这将部件移动到最接近的边框。或者您可以最大化当前部分(Ctrl-M)。这将推动所有其他部分。另一个Ctrl-M将恢复视图。

  1. In Eclipse, you open a view and let it stay where it is. In IDEA, the view changes all the time, things pop up and go away. Eclipse is static unless you specifically move things around. There are two ways to move things: You can minimize a part (a part is something which contains tabbed views). This moves the part into the closest border. Or you can maximize the current part (Ctrl-M). This pushes all other parts out of the way. Another Ctrl-M will restore the view.

这是一个展现IDEA和Eclipse之间区别的好地方。 IDEA试图预测你在做什么,并且有所帮助。对我来说,这意味着它总是在我的方式。它将开始格式化源,因为我键入,事情移动等等。 Eclipse就像一个工具箱。一切都在那里,但你必须拿起它。一个工具箱不会自动移动,它不会变得聪明。

This is a good place to show the difference between IDEA and Eclipse. IDEA tries to anticipate what you're doing and to be helpful. For me, this means it always gets in my way. It will start to format source as I type, things move, etc. That freaks me out. Eclipse is like a toolbox. Everything is there but you have to pick it up. A toolbox doesn't move on its own accord and it doesn't try to be smart.

Eclipse基于工作空间的想法。工作区是宇宙,没有外部存在。如果您需要外出,您必须先创建一个文件或文件夹。在新建文件/文件夹向导中,您可以打开高级选项(在底部),并将该资源链接到文件系统中的真实文件/文件夹。可能听起来很多的努力,但它允许Eclipse几乎可以在浏览器中显示任何内容,因为它只显示资源,而不是实际文件。

Eclipse is based on the idea of a workspace. The workspace is the universe and nothing outside exists. If you need to go outside, you must first create a file or folder. In the "New File/Folder" wizard, you can open the advanced options (at the bottom) and link this resource to a real file/folder in the file system. May sound like a lot of effort but it allows Eclipse to display virtually anything in the explorer since it just shows "resources" in there, not actually files.

闻起来像一个臭虫。请在 https://bugs.eclipse.org/bugs/ 上报告

Smells like a bug. Please report it at https://bugs.eclipse.org/bugs/

我不知道什么。

3.由于 cletus 指出,HTML无效。所以这可能会导致警告。

3. As cletus pointed out, is not valid HTML. So that might cause the warning.

这篇关于有关IntelliJ到Eclipse转换的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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