New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to open project in VS Code or other editor from the preview #1561
Comments
Better idea: Put it as another item in the |
/bounty 100 |
💎 $100.00 bounty created by MehmetAdemi |
How can an "Open in VS Code" button be editor-agnostic? Does it let you open in any editor of your choice? Perhaps, a link to the error overlay logic will help? |
Hi @mykeels, this was just an example. The button doesn't have to be "Open in VS Code" but more like "Open in IDE". It should let you open in any editor of your choice 👍🏼. Yes, a link like that would help. 👍🏼 |
Sounds great! |
I made a shallow search.
I'm not planning to proceed further. It should be easy to open a specific file, not sure about opening a specific folder. |
I've started working on this |
@RohovDmytro Thanks for the input! |
Instead of showing a button, we can ask user to open the project in their preferred code editor, such as Visual Studio Code when the what do you think 🤔 ? |
I think that @uditkumar01 has a point. |
We already ask the user after they have initialized the project if they want to open it in their editor. Allowing to do it via CLI is also a good idea, but it should never block the start of the preview server. This should be simple, as this functionality has already been implemented in the error overlay: https://github.com/remotion-dev/remotion/blob/a255b47c0daa632e4fbb49675853dff618a42788/packages/cli/src/preview-server/error-overlay/remotion-overlay/OpenInEditor.tsx |
/solution 1569 |
👉 @orimdominic Complete your account setup and reply here again with |
/solution 1569 |
💡 Solution posted: #1569 |
🎉🎈 @orimdominic has been awarded $100.00! 🎈🎊 |
Workflow:
I
cd
into a project, runnpm start
.Then I realize I forgot to run
code .
, and I need to Ctrl+C, run it and then start the preview again.Somewhere around here we could put a button "Open in VS Code", but of course it should be editor agnostic. The logic from the error overlay should be reused:
The text was updated successfully, but these errors were encountered: