You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constCOMMON_EDITORS_OSX={'/Applications/Atom.app/Contents/MacOS/Atom': 'atom','/Applications/Atom Beta.app/Contents/MacOS/Atom Beta': '/Applications/Atom Beta.app/Contents/MacOS/Atom Beta','/Applications/Sublime Text.app/Contents/MacOS/Sublime Text': '/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl','/Applications/Sublime Text 2.app/Contents/MacOS/Sublime Text 2': '/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl','/Applications/Visual Studio Code.app/Contents/MacOS/Electron': 'code',};constCOMMON_EDITORS_WIN=['Code.exe','atom.exe','sublime_text.exe','notepad++.exe',];
If your favorite editor isn't in the list, but supports running from the command line with a line number, send a PR to launchEditor.js adding it to the list, and specifying its argument format.
To verify your change works, edit node_modules/react-dev-utils/launchEditor.js in your project, add a throw new Error('hi') to a component, and then verify that clicking on the error overlay takes you to the right place.
Agree, we should extract it at some point! It's originally forked from React Native but we added more features and might eventually make RN depend on it.
In my opninion, WebStorm,PhpStorm and Idea should also be there. Despite the fact that JetBrains IDEs are offering to create a shortcut, still not a lot of people do it.
Reacted by zernie, Alexey Yalovski, Rafael Bonalume Lebre, Konstantin Melnikov, Benjamin Mosnier, Pierre, Joshua King, VIRGEN, Alexander, Roman and 7 more
@gaearon for opening CRA project in Visual Studio Code, we cannot use code as mentioned here unless we go and install the command line tools from the command pallet in VS Code.
Please find the documentation for setting up VS Code here
@reznord thanks, I just spent an hour debugging this and figured out it wasn't working because I didn't have the vscode CLI tool installed. :) @gaearon are you open to PR to improve the error message? It would be cool if it was telling to VSCode users to install the CLI first if the code command is not found.
Reacted by Levin Rickert, Aleksandr Zaitsev and Jerome Dahdah
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 7 days if no further activity occurs.
Activity
jantimon commentedon Jun 27, 2017
This feature is really cool - you should create an independent npm package out of that! 👍
gaearon commentedon Jun 27, 2017
Agree, we should extract it at some point! It's originally forked from React Native but we added more features and might eventually make RN depend on it.
ntucker commentedon Jun 27, 2017
why no linux? :(
gaearon commentedon Jun 27, 2017
@ntucker Because nobody contributed Linux support yet. Would you like to do that?
miraage commentedon Jun 28, 2017
In my opninion, WebStorm,PhpStorm and Idea should also be there. Despite the fact that JetBrains IDEs are offering to create a shortcut, still not a lot of people do it.
gaearon commentedon Jun 28, 2017
Happy to take PRs!
bunshar commentedon Jun 28, 2017
@gaearon I would like to contributed Linux support. Should I create another ticket?
gaearon commentedon Jun 28, 2017
@bunshar This ticket is fine—just send a PR!
reznord commentedon Jul 3, 2017
@gaearon in OSX you can launch
Atom Betausingatom-betacommand.So,
can be
gaearon commentedon Jul 3, 2017
Happy to take PRs (although if it works fine, I wouldn't change it).
reznord commentedon Jul 3, 2017
Can I take this up and add Linux support as well?
Sent from my OnePlus ONEPLUS A3003 using FastHub
gaearon commentedon Jul 3, 2017
Sure.
reznord commentedon Jul 7, 2017
@gaearon for opening CRA project in
Visual Studio Code, we cannot usecodeas mentioned here unless we go and install the command line tools from the command pallet inVS Code.Please find the documentation for setting up VS Code here
14 remaining items
Auto-detect running editor on Linux for error overlay (react#3077)
Autodetect JetBrains IDEs (#2754)
Autodetect MacVim editor (#3545)
Grsmto commentedon Feb 6, 2018
@reznord thanks, I just spent an hour debugging this and figured out it wasn't working because I didn't have the vscode CLI tool installed. :)
@gaearon are you open to PR to improve the error message? It would be cool if it was telling to VSCode users to install the CLI first if the
codecommand is not found.Autodetect MacVim editor (react#3545)
Feed correct line number to gvim on launch (#5202)
stale commentedon Nov 2, 2018
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 7 days if no further activity occurs.