为什么要使用 IDE? [英] Why should I use an IDE?

查看:37
本文介绍了为什么要使用 IDE?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在另一个问题中,Mark 高度评价 IDE,说有些人仍然不知道为什么"他们应该用一个……".作为使用 vim 进行编程并在大多数/我所有同事使用 vim 或 emacs 进行所有工作的环境中工作的人,IDE 的优势是什么?为什么要使用一个?

In another question, Mark speaks highly of IDEs, saying "some people still just dont know "why" they should use one...". As someone who uses vim for programming, and works in an environment where most/all of my colleagues use either vim or emacs for all of their work, what are the advantages of IDEs? Why should I use one?

我确定这对某些人来说是一个收费问题,而且我对开始激烈的战争不感兴趣,所以请只回复您认为基于 IDE 的方法更优越的原因.我对为什么不应该使用 IDE 感兴趣;我已经不用了.可以这么说,我有兴趣听到篱笆另一边"的消息.

I'm sure this is a charged issue for some people, and I'm not interested in starting a flame war, so please only reply with the reasons you believe an IDE-based approach is superior. I'm not interested in hearing about why I shouldn't use an IDE; I already don't use one. I'm interested in hearing from "the other side of the fence", so to speak.

如果您认为 IDE 可能适合某些类型的工作而不适合其他类型的工作,我也很想知道原因.

If you think that IDEs may be suitable for some types of work but not others, I'm also interested to hear why.

推荐答案

这实际上取决于您使用的语言,但在 C# 和 Java 中,我发现 IDE 对以下方面有益:

It really depends on what language you're using, but in C# and Java I find IDEs beneficial for:

  • 快速导航到一个类型而无需担心命名空间、项目等
  • 通过将成员视为超链接来导航到成员
  • 当你无法记住所有成员的名字时自动补全
  • 自动代码生成
  • 重构(大规模重构)
  • 组织导入(在 Java 中自动添加适当的导入,在 C# 中使用指令)
  • 输入时警告(即某些错误甚至不需要编译周期)
  • 将鼠标悬停在某处以查看文档
  • 以有用的方式同时在屏幕上查看文件、错误/警告/控制台/单元测试等和源代码
  • 易于从同一窗口运行单元测试
  • 集成调试
  • 集成源代码控制
  • 直接从错误详细信息导航到发生编译时错误或运行时异常的位置.
  • 等等!

所有这些都可以节省时间.这些事情我可以手动完成,但更痛苦:我宁愿编码.

All of these save time. They're things I could do manually, but with more pain: I'd rather be coding.

这篇关于为什么要使用 IDE?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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