Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Built-in snippet not working in VS Code for React

I am coding a React page with VS Code.

Suddenly, some snippets like rfce started not working even if it's never given me problems. I don't know what's wrong.

picture of before

enter image description here

picture of now

enter image description here

What I did recently was just updated react-router-dom to version 5.2.0 and npm install it.

like image 673
SteakOverflow Avatar asked Dec 11 '25 14:12

SteakOverflow


2 Answers

React snippets are not built-in. That one for example comes from this extension.

Make sure you have it installed and enabled, and that you are working in a file with the proper file extension for them to work.

like image 188
Guillermo Brachetta Avatar answered Dec 13 '25 05:12

Guillermo Brachetta


If on windows, use -rfce instead of _rfce. This worked for me!

like image 44
Alex Avatar answered Dec 13 '25 04:12

Alex



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!