DEV Community

Cover image for Setup VSCode With REACT_EDITOR  (Or Any Editor)
Sir.Nathan (Jonathan Stassen)
Sir.Nathan (Jonathan Stassen)

Posted on • Updated on • Originally published at blog.jstassen.com

Setup VSCode With REACT_EDITOR (Or Any Editor)

When an error occurs with an app Created with Create React App the error screen is super helpful.

Alt Text

You can even click on the errors in the browser to jump directly to the line of code inside your editor! But you have to setup your editor else you'll see the error below.

Console Error:

Could not open SomeFile.js in the editor.
To set up the editor integration, add something like
REACT_EDITOR=atom to the .env.local file in your project
folder and restart the development server.
Learn more: https://goo.gl/MMTaZt
Enter fullscreen mode Exit fullscreen mode

So how you setup VSCode with REACT_EDITOR?

Step 1) Setup your editor to be open from terminal

For VSCode, open the command pallet ( Command Key + P ) and type ...
Continue Reading

Top comments (0)