ReactPropTypes

Compatible with: IntelliJ IDEA PhpStorm WebStorm PyCharm RubyMine AppCode CLion GoLand Rider
Aug 22, 2018
20 046
Auto Generate code for React's Component PropTypes (ES5 is not supported for the time being)
Usage Instructions:
1. Select or take the cursor in your Component's name
2. Press command + N (Windows is alt + insert) show Generate Group and click PropTypesGenerate, or press shift + command + alt + P (Windows is shift + ctrl + alt + P) in the macOS
3. Edit the PropTypes Table to modify default type
If you have any question , you can leave a issue in github.
使用介绍:
1. 选中你的组件名称或者将光标移动到组件的名称上 2. 按下command + N (Windows 是 alt + insert) 显示 Generate Group 并且点击 PropTypesGenerate, 或者直接按下快捷键 shift + command + alt + P (Windows 是 shift + ctrl + alt + P) 在macOs系统中
3. 接下来就你可以在弹出的弹框中看到即将生成的PropType列表,并且你可以自由编辑它们。
如果你在使用过程中遇到了任何问题,或者想了解插件更多的使用方法,都可以在 github 中留言

Download plugin

Recent change notes

Fixed a bug that not work on functional components

General usage instructions

1.Select your Component's name

2.Press command + N (Windows is alt + insert) show Generate Group and select PropTypesGenerate, or press shift + command + alt + P (Windows is shift + ctrl + alt + P) in the macOS

3.Edit the PropTypes Table to modify default type