Netbeans IDE中的ReactJS/JSX支持 [英] ReactJS/JSX support in Netbeans IDE

查看:250
本文介绍了Netbeans IDE中的ReactJS/JSX支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚下载了NetBeans 8.1 for PHP.根据 https://netbeans.org/bugzilla/show_bug.cgi?id=250288 出现没有原生的ReactJS/JSX支持.有没有人用这个来做出反应.有什么解决方法吗?我已经使用Netbeans多年了,不愿意不得不迁移到其他IDE.

I've just downloaded Netbeans 8.1 for PHP. Based on https://netbeans.org/bugzilla/show_bug.cgi?id=250288 , it appears that there is no native ReactJS/JSX support. Is anyone using this for react. Are there any workarounds? I'm been using Netbeans for years and would hate to have to move to a different IDE.

推荐答案

我也是Netbeans用户,但是由于这样的需要,我已经将自己从Netbeans切换到Sublime(第一个),现在又切换到了Atom老实说,对于前端开发而言,工作流程很棒.我使用ReactJS,AngularJS和VueJS,并且所有这些Atom都符合我的需求.

Well, i'm a Netbeans user too, but because of needs like this, i've switched myself from Netbeans to Sublime (first) and now to Atom for Frontend development and honestly, the workflow is great. I use ReactJS, AngularJS and VueJS, and for all of this Atom fits my needs.

Atom使用软件包(如插件)来支持所有这些,这就是我在React中使用的:

Atom uses packages (like plugins) to support all of this, here's what i use for React:

  • Atom (https://atom.io/)
  • React Package (https://atom.io/packages/react)

该软件包添加:

  • 语法突出显示
  • 摘要
  • 自动缩进和折叠
  • JSX重新格式化
  • HTML到JSX的转换
  • 自动完成

需要记住的重要一点是,有时Atom出于某种原因会使用错误的语法高亮显示,因此,在JSX文件中,只需单击右下角(在编码旁边),然后可以在其中选择文件类型(对于ReactJS,应是Javascript(JSX)),一切都应该很好:)

Something important to remember is that sometimes Atom uses the wrong syntax highlight for some reason, so, in JSX files just click in the bottom right corner (next to the encoding) and you can select your filetype there (for ReactJS, should be Javascript(JSX)) and everything should be fine :)

我邀请您尝试一下,它有很棒的经验,并且对于后端开发(在我的情况下为PHP)而言,Netbeans更好,它可以从前端中不需要的很多好处中受益(对我而言,最重要的是去声明",在前端,我不需要这个.

I invite you to try it, its a great experience and for backend development (in my case, PHP) Netbeans is way better, from a lot of benefits that in frontend you might not need (the most to me is think is "Go to declaration", which in frontend i don't have/need).

如果您想知道我使用的其他哪些软件包可能会在前端开发中为您提供帮助,请告诉我,我将更新这篇文章:)

If you want to know what other packages i use that might help you in frontend development just let me know and i'll update this post :)

祝你好运!

这篇关于Netbeans IDE中的ReactJS/JSX支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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