Skip to content

Instantly share code, notes, and snippets.

@petmongrels
Created September 4, 2023 15:33
Show Gist options
  • Save petmongrels/58d51d1192dc9b92b61b91ea2876f492 to your computer and use it in GitHub Desktop.
Save petmongrels/58d51d1192dc9b92b61b91ea2876f492 to your computer and use it in GitHub Desktop.
Open files in react native stack trace from emulator
FILE="`echo $1 | cut -d':' -f 1`"
LINE_NUMBER="`echo $1 | cut -d':' -f 2`"
open -na "IntelliJ IDEA.app" --args --line $LINE_NUMBER $FILE
## Also set REACT_EDITOR env variable to this file
## if you call this file idea then
## export REACT_EDITOR=idea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment