Skip to content
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

Feature to save code written in a language while switching to another language #87

Open
StealthX2k20 opened this issue Aug 24, 2021 · 4 comments
Assignees

Comments

@StealthX2k20
Copy link

User's code on one language gets erased on switching to another language.
I'm willing to take this up.

@sahildua2305
Copy link
Owner

Thanks for creating this issue. Sure, feel free to take this on. It would be nice to discuss what you have in mind before you create a Pull Request.

@StealthX2k20
Copy link
Author

Sure, the approach is pretty basic, here's what I think :

  1. We can save a key-value pair in local-storage where key corresponds to the chosen language and value corresponds to the
    currently written code.
  2. Every time when the user tries to switch the language we can render the code if its present in the local-storage otherwise we
    can render the default boiler plate of that language.

@StealthX2k20
Copy link
Author

Hi @sahildua2305 ,
Please review my PR for the mentioned issue. Let me know if any changes are required. :)
Thanks.

@navitux
Copy link

navitux commented Apr 6, 2022

Hi, Is this still open? I want contribute

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants