Does anyone know how to stop PHP Storm/Webstorm from changing onClick to onclick when pasting/moving code? It's driving me mad.
-
-
-
Replying to @WebStormIDE
JSX inside typescript using '.tsx' files, is it a known issue? I can't find anything about it online
1 reply 0 retweets 0 likes -
Replying to @front_end_code
Does disabling “Preferences | Editor | General | Smart Keys -> Convert attributes when pasting HTML to JSX” help?
1 reply 0 retweets 1 like -
-
Replying to @front_end_code
Can you share a small repro? It should actually work other way around (onclick -> onClick)
1 reply 0 retweets 0 likes -
Replying to @WebStormIDE
Sure thing, see attached GIF. This is app.tsx created from Create React App with the typescript option set - npx create-react-app my-app --typescript. Weirdly it doesn't format my other attribute. I've included the code in a Codepen - https://codepen.io/anon/pen/vwzwWO?editors=1010 …pic.twitter.com/G5zvrQ0Tza
1 reply 0 retweets 0 likes -
Replying to @front_end_code @WebStormIDE
If you need a full reproducible example let me know and I'll create a small project on Github where it can be reproduced. I'm on PHP Storm 2019.1.
1 reply 0 retweets 0 likes -
Replying to @front_end_code
Yes, small project would be nice, seems to be working fine with latest react
1 reply 0 retweets 0 likes -
Replying to @WebStormIDE
I'm baffled, I can't replicate it with a new project despite copying app.tsx over. There must be something in that project that somehow breaks this functionality, if I ever figure it out and can reproduce I'll create a ticket.
1 reply 0 retweets 0 likes
Thanks! It might be related to the packages in package.json
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.