如何重构“提取函数”在 JavaScript 中?

发布于 2024-12-27 07:44:28 字数 101 浏览 3 评论 0原文

我是 Java/jQuery 开发人员。 Eclipse 或 Aptana 或任何其他 JavaScript/jQuery IDE 中是否有针对 JavaScript 的“提取函数”重构?

I'm Java/jQuery developer. is there any "extract function" refactoring for JavaScript in Eclipse or Aptana or any other JavaScript/jQuery IDE?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

玩心态 2025-01-03 07:44:28

绝对同意。 Eclipse 对于 Java 来说是一个非常棒的环境,但是对于 javascript 来说却是一场真正的噩梦。如果您确实想要一个免费的 IDE,那么我会推荐 Eclipse 之上的 Netbeans (7.1)。它的 jabascript 支持要好得多。尝试定义 javascript“类”,您会发现为什么 Eclipse 无法胜任这项工作(Helio)。我非常失望。

我也尝试过Webstorm,它确实是一个非常好的(肯定比Eclipse和Netbeans更好)的开发环境,但是需要时间来适应。我可以想象开发人员不喜欢切换到 Webstorm,因为他们和我一样已经习惯了 Eclipse。但我认为我们只需要耐心等待......我们就会得到丰厚的回报;-)。

Absolutely agree. Eclipse is a fantastic ebvironment for Java, but for javascript it's a real nightmare. If you really want a free IDE then I would recommend Netbeans (7.1) above Eclipse. Its jabascript support is so much better. Try to define javascript 'classes' and you will find out why Eclipse is not up to the job (Helio). I'm terribly disappointed.

I have given Webstorm a try too, and it is indeed a very good (certainly better than Eclipse and Netbeans) development environment, but it takes time to get used to it. I can imagine that developers don't like switching to Webstorm because they, like me, are so used to Eclipse. But I think we just need to be patient... and we will be greatly rewarded ;-).

千紇 2025-01-03 07:44:28

对于 JavaScript,WebStorm 及其老大哥 IntelliJ IDEA 都是如此。

对于 Java,IntelliJ IDEA 确实如此,而且我相信 Eclipse 对 Java 有一套广泛的重构(包括“提取函数”) 。如果 Netbeans 不这样做,我会感到惊讶。

For JavaScript, both WebStorm and its big brother IntelliJ IDEA both do.

For Java, IntelliJ IDEA does, and I believe Eclipse has an extensive set of refactorings (including "extract function") for Java. I'd be surprised if Netbeans doesn't as well.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文