All Projects → dpzxsm → ReactPropTypes-Plugin

dpzxsm / ReactPropTypes-Plugin

Licence: MIT license
A Jetbrains Plugin for react PropTypes

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to ReactPropTypes-Plugin

Intellij Platform Solarized
Solarized UI and editor themes for IntelliJ IDEA, CLion, Rider, PyCharm, RubyMine, PhpStorm, WebStorm, Android Studio, DataGrip and GoLand
Stars: ✭ 148 (+138.71%)
Mutual labels:  intellij, jetbrains, phpstorm, webstorm
Intellij Plugin Save Actions
Supports configurable, Eclipse like, save actions, including "organize imports", "reformat code" and "rearrange code".
Stars: ✭ 440 (+609.68%)
Mutual labels:  intellij, jetbrains, phpstorm, webstorm
JetBrainsRunner
A Krunner Plugin which allows you to open your recent projects
Stars: ✭ 31 (-50%)
Mutual labels:  intellij, jetbrains, phpstorm, webstorm
Intellij Csv Validator
CSV validator, highlighter and formatter plugin for JetBrains Intellij IDEA, PyCharm, WebStorm, ...
Stars: ✭ 198 (+219.35%)
Mutual labels:  intellij, jetbrains, webstorm, idea-plugin
Runconfigurationasaction
Provides a way to use IntelliJ run configurations as buttons
Stars: ✭ 17 (-72.58%)
Mutual labels:  intellij, jetbrains, phpstorm, webstorm
interstellar
Dark editor theme for JetBrains IDEs
Stars: ✭ 26 (-58.06%)
Mutual labels:  intellij, jetbrains, phpstorm, webstorm
Night Owl Jetbrains
Night owl theme / colour scheme for IntelliJ and Webstorm (or other Jetbrains IDEs). Includes dark and light mode 🌓
Stars: ✭ 276 (+345.16%)
Mutual labels:  intellij, jetbrains, phpstorm, webstorm
Tabnine Intellij
Jetbrains IDEs client for TabNine. Compatible with all IntelliJ-based IDEs. https://plugins.jetbrains.com/plugin/12798-tabnine
Stars: ✭ 140 (+125.81%)
Mutual labels:  intellij, jetbrains, phpstorm, webstorm
Intellij Jvm Options Explained
Common JVM options used with Intellij and what they do
Stars: ✭ 636 (+925.81%)
Mutual labels:  intellij, jetbrains, phpstorm, webstorm
jetbrains-utility
Remove/Backup – settings & cli for macOS (OS X) – DataGrip, AppCode, CLion, Gogland, IntelliJ, PhpStorm, PyCharm, Rider, RubyMine, WebStorm
Stars: ✭ 62 (+0%)
Mutual labels:  intellij, jetbrains, phpstorm, webstorm
Intellij Idea Tutorial
IntelliJ IDEA 简体中文专题教程
Stars: ✭ 19,071 (+30659.68%)
Mutual labels:  intellij, jetbrains, phpstorm, webstorm
Jetbrains Helper
Jetbrains helper
Stars: ✭ 33 (-46.77%)
Mutual labels:  intellij, jetbrains, phpstorm, webstorm
intellij-autohotkey
AutoHotkey plugin for the Jetbrain's IntelliJ platform
Stars: ✭ 30 (-51.61%)
Mutual labels:  intellij, jetbrains, webstorm
jetbrains-theme
🎨 A modern, productivity-increaser theme for all JetBrains IDEs
Stars: ✭ 108 (+74.19%)
Mutual labels:  intellij, phpstorm, webstorm
intellij-neos
Support for the Neos CMS in Intellij IDEA / PhpStorm
Stars: ✭ 37 (-40.32%)
Mutual labels:  intellij, jetbrains, phpstorm
Magento2 Phpstorm Plugin
PHPStorm Plugin for Magento 2
Stars: ✭ 294 (+374.19%)
Mutual labels:  intellij, jetbrains, phpstorm
Svelte Intellij
Svelte components in WebStorm and friends
Stars: ✭ 345 (+456.45%)
Mutual labels:  intellij, phpstorm, webstorm
Webstorm License Key
Instruction how use license key for WebStorm & all JetBrains products
Stars: ✭ 85 (+37.1%)
Mutual labels:  jetbrains, phpstorm, webstorm
Idea Php Symfony2 Plugin
IntelliJ IDEA / PhpStorm Symfony Plugin
Stars: ✭ 797 (+1185.48%)
Mutual labels:  intellij, jetbrains, phpstorm
Idea Php Laravel Plugin
Laravel Framework Plugin for PhpStorm / IntelliJ IDEA
Stars: ✭ 537 (+766.13%)
Mutual labels:  intellij, jetbrains, phpstorm

ReactPropTypes-Plugin

中文文档

This is a JetBrains plug-in that automatically generates PropTypes code for React components, and only supports ES6 later at the moment. If you need to support ES5, please leave a message in issue.Compatible with: IntelliJ IDEA, PhpStorm, WebStorm, PyCharm, RubyMine, AppCode, CLion, Gogland, Rider.

If you are want use it by Visual Code or command line, I suggest you to use another plugin: react-proptypes-generate, now it is imperfect, welcome issue and PR.

Installed

  1. In plugin store search "ReactPropTypes" and install it , this is Store Link, Welcome comments.
  2. Click ReactPropTypes.jar(Recently, but may Unstable) to download and open Setting/Plugins/Install Plugin from disk to install.

How to use

  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

Preview

Class Components

img

Functional Components

img

When you select Shape as the PropType

img

How to Build and Development the project

Dependency Library

  • IntelliJ Platform Plugin SDK
  • JavaScriptLanguage's lib (In macOS, the path is /Applications/IntelliJ IDEA.app/Contents/plugins/JavaScriptLanguage/lib, Windows are similar)

Development Step

  1. Download the latest IntelliJ IDEA Ultimate
  2. Clone and Open this project
  3. Delete default module and import plugin module by ReactPropTypes.iml
  4. Config Project SDK named IntelliJ IDEA IU-182.** and Config language level 8
  5. Config plugin out dir and plugin launch Configurations

For Example

img

Features

  1. Get a heightLight text as component's name if you are not select any text.
  2. In the Standard ES6 component, the plugin can distinguish props's reference and destructuring assignment with keyword "props" or "nextProps".
  3. In the Stateless component, only when your first param must be named "props" or a destructuring parameter the plugin can distinguished.
  4. If you select ES6 code style , the propTypes code will generate at the last line .Of cause, if you select ES7 code style, the propTypes code will generate at the component inside's first line.
  5. Double Click the row's name in the table, can modify distinguished name if not you expect, also support add a new row or delete what you not need.
  6. If your component has a default value for props, the plugin will fill the default type to the table.
  7. Support PropTypes.shape and handle defaultProps.
  8. You can custom your code generate's style.
  9. Supports automatic inference of functions and array types in code, and can be opened in the settings.
  10. Support full list of PropTypes

Next plan

  1. Developing a similar plugin on the VS Code's platform
  2. Support Flow Or TypeScript's TypeChecker, and not use PropTypes
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].