Java 使 Eclipse 表现得像 Visual Studio
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/146020/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Making Eclipse behave like Visual Studio
提问by FlySwat
I'm doing some Android development, and I much prefer Visual Studio, but I'll have to use Eclipsefor this.
我正在做一些 Android 开发,我更喜欢 Visual Studio,但我必须为此使用Eclipse。
Has anyone made a tool which can make Eclipselook and behave more like visual studio? I mainly can't stand its clippyesqesuggestions on how I should program (Yes, I know I have not yet used that private field! Thanks Eclipse!), or its incredibly lousy intellisense.
有没有人制作过一个工具,可以让Eclipse 的外观和行为更像 Visual Studio?我主要受不了它关于我应该如何编程的clippyesqe建议(是的,我知道我还没有使用过那个私有字段!感谢 Eclipse!),或者它非常糟糕的智能感知。
For example, in eclipse, if I don't type this
first, its intellisensewon't realise I want to look for locally scoped members. Also, the TAB to complete VS convention is drilled into my head, and Eclipseis ENTER to complete, I could switch everything by hand but that would take hours, and I was hoping someone had some sort of theme or something that has already done it.
例如,在 eclipse 中,如果我不this
先输入,它的智能感知将不会意识到我要查找本地范围的成员。此外,完成 VS 约定的 TAB 钻进我的脑海,Eclipse是 ENTER 完成,我可以手动切换所有内容,但这需要几个小时,我希望有人有某种主题或已经完成的东西.
采纳答案by Steve K
There are also other choices for Java IDEs. You've obviously found Eclipse, but you also may want to check out IntelliJand NetBeans. IntelliJ is not free, but has a 30 day evaluation period and a Visual Studio key map :)
Java IDE 也有其他选择。您显然已经找到了 Eclipse,但您可能还想查看IntelliJ和NetBeans。IntelliJ 不是免费的,但有 30 天的评估期和 Visual Studio 键映射 :)
Shop around, find one that you like and start to use it heavily. They are all very good IDEs, and I'm sure once you use one for a while you'll get comfortable with it.
货比三家,找到一个你喜欢的,并开始大量使用它。它们都是非常好的 IDE,我相信一旦您使用了一段时间,您就会对它感到满意。
回答by JesperE
Have you tried using the Visual Studio keybindings available in Eclipse Ganymede (3.4)?
您是否尝试过使用 Eclipse Ganymede (3.4) 中可用的 Visual Studio 键绑定?
(You may want to know that "IntelliSense" is a Visual Studio-term, an probably unknown to anyone without Visual Studio-experience. "Autocompletion" is probably a more widely used term.)
(您可能想知道“IntelliSense”是一个 Visual Studio 术语,对于没有 Visual Studio 经验的任何人来说可能都不知道。“自动完成”可能是一个更广泛使用的术语。)
回答by Steve K
If you start typing the name of any class/variable visible in the current scope and hit Ctrl+Space, it'll bring down the autocompletion.
如果您开始键入当前作用域中可见的任何类/变量的名称并按 Ctrl+Space,它将关闭自动完成。
By default, tab is used to move around autocompleted function call arguments.
默认情况下,选项卡用于移动自动完成的函数调用参数。
回答by jcollum
I'm gonna play devils advocate here and say that forcing you to use this.myString
is actually much safer than just myString
. myString
could be defined locally (in the method) or in the class as a private member. I sometimes think Visual Studio is a bit cavalier about this. In the sample you mention (I saw the video but it was illegible) where is myString
scoped?
我要在这里扮演魔鬼的拥护者并说强迫你使用this.myString
实际上比仅仅安全得多myString
。myString
可以在本地(在方法中)或在类中定义为私有成员。我有时认为 Visual Studio 对此有点傲慢。在您提到的示例中(我看过视频但难以辨认)myString
范围在哪里?