厌倦了 Java IDE,需要简单而基本的替代品

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2037962/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-29 19:04:34  来源:igfitidea点击:

Tired of Java IDEs, Need simple and basic alternative

javaide

提问by Nachiket

I am really happy that I got my work in Java programming, and I am doing it since last 3 yrs.
And I am netbeans user, and worked on eclipse for sometime (4 months)..
Now I am tired on IDE's and its issues..

我真的很高兴我在 Java 编程方面得到了我的工作,而且我从过去 3 年开始就一直在做。
我是 netbeans 用户,在 eclipse 上工作了一段时间(4 个月)。
现在我厌倦了 IDE 及其问题。

few issues are:

几个问题是:

  • Doesn't work on slow computers - sometimes i have to work on slow computer..
  • You can't work without them, like I am trying to work on javascript, but it was hard for me because of no code-completion support
  • Many times does not support all the features, but other IDE does, which will make you to try other IDE and results in spending lots of time behind tooling... like I started using AspectJ but there is not much aspectJ support on netbeans.. so decided to try eclipse.. but changing IDE is another pain point..
  • 在慢速计算机上不起作用 - 有时我必须在慢速计算机上工作..
  • 没有它们你就无法工作,就像我正在尝试使用 javascript,但由于没有代码完成支持,这对我来说很难
  • 很多时候不支持所有功能,但其他 IDE 支持,这会让您尝试其他 IDE 并导致在工具后面花费大量时间......就像我开始使用 AspectJ 但在 netbeans 上没有太多 aspectJ 支持。所以决定尝试 eclipse.. 但改变 IDE 是另一个痛点..

I heard that many programmers does not use IDE's they just need text-editors (code-coloring/navigation), And i think its cool, and productive (overall), as their need of tooling is not much, so able to adopt new technologies/frameworks fast..

我听说很多程序员不使用 IDE,他们只需要文本编辑器(代码着色/导航),而且我认为它很酷,而且富有成效(总体而言),因为他们对工具的需求并不多,因此能够采用新技术/框架快..

So, what should i do to shift from Java IDE's to text-editor only world.. ? And what are famous advanced text-editor (free/open-source) available ??

那么,我应该怎么做才能从 Java IDE 转向纯文本编辑器的世界..?什么是著名的高级文本编辑器(免费/开源)?

Few steps towards console-world I have already taken..

迈向控制台世界的几步我已经采取了..

  • Now using Maven, and running from console always..
  • Doing SVN checkin/checkout from console.. But still it hard to resolve conflict
  • 现在使用 Maven,并始终从控制台运行..
  • 从控制台执行 SVN 签入/签出 .. 但仍然难以解决冲突

EDIT: I am using Linux & (sometimes Windows).

编辑:我使用的是 Linux &(有时是 Windows)。

Cheers,

干杯,

回答by Robert Campbell

Emacs. You can take a look at JDEEto get started.

埃马克。您可以查看JDEE以开始使用。

回答by OscarRyz

Look no further, embrace vi( you can start using gvim- graphic vi improved - )

别再看了,拥抱vi(你可以开始使用gvim- 图形 vi 改进 - )

回答by Fabian Steeg

I took the Pragmatic Programmer's advice of learning one editor well (Tip 22: Use a Single Editor Well. The editor should be an extension of your hand; make sure your editor is configurable, extensible, and programmable.) an applied it to IDEs. I'm very happy with sticking to Eclipse, in particular since it's very extensible, so whenever I need tooling for something new, it's mostly available in Eclipse, and my keyboard shortcuts etc. work.

我采纳了Pragmatic Programmer的关于学习一个编辑器的建议(提示 22:使用单一编辑器。编辑器应该是你手的延伸;确保你的编辑器是可配置的、可扩展的和可编程的。)并将其应用于IDE。我很高兴坚持使用 Eclipse,特别是因为它具有很强的可扩展性,所以每当我需要工具来处理新事物时,它大多在 Eclipse 中可用,并且我的键盘快捷键等工作正常。

回答by Pascal Thivent

If you are using Linux, then have a look:

如果您使用的是 Linux,请查看:

But I can't suggest one in particular, this is subjective and a matter of personal preference/taste. And, to be honest, I still think that you should use an IDE when doing Java development, text-editors won't solve all your issues and you'll loose very important features (e.g. refactoring). Seriously, when working with a given technology, get the right tool (and computer). With Java, this means using an IDE. And if you want AspectJ support, use Eclipse; if you want good Grails + Groovy support, NetBeans is a good choice; etc etc. Using several IDE is actually the norm for me.

但我不能特别推荐一个,这是主观的,是个人喜好/品味的问题。而且,老实说,我仍然认为在进行 Java 开发时您应该使用 IDE,文本编辑器不会解决您的所有问题,并且您会丢失非常重要的功能(例如重构)。说真的,在使用给定技术时,请使用正确的工具(和计算机)。对于 Java,这意味着使用 IDE。如果您需要 AspectJ 支持,请使用 Eclipse;如果您想要良好的 Grails + Groovy 支持,NetBeans 是一个不错的选择;等等等等。使用多个IDE实际上是我的常态。

Just for the record, check out what James Gosling says in Don't use Emacs, says Java's father(which applies to all text-editors IMO, not only Emacs).

只是为了记录,请查看 James Gosling 在Java 之父说的不要使用 Emacs 中所说的话(这适用于 IMO 的所有文本编辑器,而不仅仅是 Emacs)。

回答by Marshall Alsup

I can appreciate you concerns and I felt similar until I found IntelliJ Idea. I realize you were asking about text editor alternatives but you didn't mention whether or not you'd tried Idea so I thought I'd mention it. I found it to be a breath of fresh air. Its fast, easy to use, and easy to configure. I love using it and it really felt like they had me personally in mind when they designed it. Unfortuantly, its not free, but you can do a trial and see if you like it at http://www.jetbrains.com/idea/download/

我可以理解您的担忧,并且在我找到 IntelliJ Idea 之前我也有类似的感觉。我意识到您在询问文本编辑器的替代方案,但您没有提到您是否尝试过 Idea,所以我想我会提到它。我发现这是一股清新的空气。它快速、易于使用且易于配置。我喜欢使用它,而且真的感觉他们在设计它时考虑到了我个人。不幸的是,它不是免费的,但您可以在http://www.jetbrains.com/idea/download/ 上进行试用,看看您是否喜欢它

If you really must use text editors, I can second recomendations for Notepad++ and Textpad, both of which I've enjoyed at one time or another.

如果您真的必须使用文本编辑器,我可以再次推荐 Notepad++ 和 Textpad,我曾多次喜欢这两种方法。

I am now using Flex Builder 3 for some flex work and I hope you are never subjected to that abomination or you may give up IDEs forever :)

我现在正在使用 Flex Builder 3 进行一些 flex 工作,我希望你永远不会受到那种可憎的影响,否则你可能会永远放弃 IDE :)

Anyway, best of luck!

不管怎样,祝你好运!

回答by David-Zazeski

Notepad++is another good alternative for windows. It is a very light-weight editor which has syntax highlighting for a variety of programming languages (including java). Notepad++ also supports multiple tabs.

Notepad++是 Windows 的另一个不错的选择。它是一个非常轻量级的编辑器,具有针对各种编程语言(包括 java)的语法突出显示。Notepad++ 还支持多个选项卡。

回答by holms

some update: take a look at http://www.sublimetext.com/2it's commercial, but this one supports all platforms, not java based, uses own interface. I know at least 4 vim guys who already migrated to this one probably because you can write plugin in almost any language! =) there's repository for plugins. I think this is really something new and worth to have. If you develop for a company money is not a problem in here =)

一些更新:看看http://www.sublimetext.com/2它是商业的,但这个支持所有平台,不是基于java的,使用自己的接口。我知道至少有 4 个 vim 人已经迁移到了这个,可能是因为您几乎可以用任何语言编写插件!=) 有插件存储库。我认为这真的是新的东西,值得拥有。如果你为公司开发,钱在这里不是问题=)

回答by Kshitij Aggarwal

I would vouch for Netbeans. It has been my favourite IDE since the last 5 years. It has excellent code completion support for almost all the languages. It also has added extensive support for Javascript and Maven in its latest releases.

我会为 Netbeans 担保。自过去 5 年以来,它一直是我最喜欢的 IDE。它对几乎所有语言都有出色的代码完成支持。它还在其最新版本中添加了对 Javascript 和 Maven 的广泛支持。

I would definately recommend it to everyone. It can be found at www.netbeans.org. Do check out the site to see list of all the features.

我肯定会向所有人推荐它。它可以在www.netbeans.org上找到。请查看该站点以查看所有功能的列表。

Available for both linux and windows. And is much ligther on system resources then eclipse.

适用于 linux 和 windows。并且在系统资源上更轻,然后日食。

回答by D.C.

Maven and SVN are a good start. Other than that, you will probably just want to master the shortcuts of a good text editor. There are the two holy choices: vim and emacs. I prefer neither, and usually go with textmate for mac.

Maven 和 SVN 是一个好的开始。除此之外,您可能只想掌握一个好的文本编辑器的快捷方式。有两个神圣的选择:vim 和 emacs。我两者都不喜欢,通常使用 textmate for mac。

Even though IDE's can be a pain in some regards there is a lot of stuff you give up without them. For example, I am not a gifted enough Java developer to have memorized the Java and Spring API's, so code complete is huge for me. Also, having the IDE flag compiler errors on the spot is a huge time saver. Adding TODO's to my code and coming back to them is handy. Do you think your overall time will be saved without these features? If so, then definitely give the vim/emacs approach a try.

尽管 IDE 在某些方面可能会很痛苦,但如果没有它们,您会放弃很多东西。例如,我不是一个天才的 Java 开发人员,无法记住 Java 和 Spring API,因此完整的代码对我来说意义重大。此外,当场标记 IDE 编译器错误可以节省大量时间。将 TODO 添加到我的代码中并返回它们很方便。您认为没有这些功能会节省您的总时间吗?如果是这样,那么一定要尝试使用 vim/emacs 方法。

回答by Thorbj?rn Ravn Andersen

I would suggest either Emacs or vim (in GUI mode) as an editor, as they are de-facto standards on Unix in general. Then use ant to build your code using javac.

我建议使用 Emacs 或 vim(在 GUI 模式下)作为编辑器,因为它们通常是 Unix 上的事实上的标准。然后使用 ant 使用 javac 构建您的代码。