How do you complete the following PRO TIP from the Android emulator node using the Windows cmd line for VSCode?
"When you see Red Box with stack trace, you can click any
stack frame to jump to the source file. The packager will launch your
editor of choice. It will first look at REACT_EDITOR environment
variable, then at EDITOR. To set it up, you can add something like
export REACT_EDITOR=atom to your ~/.bashrc or ~/.zshrc depending on
which shell you use."
Should I use export REACT_EDITOR=code?
In what directory?
I can't find ~/.bashrc or ~/.zshrc folders anywhere.
Here's how to do it in OS X:
1) Add REACT_EDITOR=code to your .env.local file
2) Install command code by following Launching from the command line here
3) Restart debugger
4) Profit!
Forgive if this answer doesn't work for android. If you're doing react for web and land here:
You can add
REACT_EDITOR=code
to an .env.local file in your project root if you use create-react-app
https://create-react-app.dev/docs/adding-custom-environment-variables
More info on the .env file pattern: https://create-react-app.dev/docs/adding-custom-environment-variables#what-other-env-files-can-be-used
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With