ReactPropTypes-Plugin icon indicating copy to clipboard operation
ReactPropTypes-Plugin copied to clipboard

PropTypesGenerate doesn't show up

Open iElsha opened this issue 4 years ago • 2 comments

Hello,

I'm running the plugin on Windows 10 and IntelliJ IDEA Ultimate 2020.2.

When I do alt + enter in the className / functionName it doesn't show the field "PropTypesGenerate ".

image

Here's the source code:

import React     from "react";
import TextField from "@material-ui/core/TextField";

export default function CustomTextField(props) {
    const {
 value, onChange, error, label, name, helperText
} = props;
    return (
        <TextField
            value={value}
            color="secondary"
            label={label}
            error={error}
            helperText={helperText}
            name={name}
            onChange={(e) => {
                onChange(name, e);
            }}
            fullWidth
        />
    );
}

Do you have any idea if I'm doing something wrong?

Thanks in advance

iElsha avatar Aug 06 '20 17:08 iElsha

It seems that in the 2020.x version, PropTypesGenerate doesn't show up. You can alse use shift + ctrl + alt + P KeyMap to show Dialog. @iElsha I will take time to fix this problem.

dpzxsm avatar Aug 12 '20 01:08 dpzxsm

Thank you for your answer, I didn't see the KeyMap.

iElsha avatar Aug 12 '20 07:08 iElsha