hackIDE
hackIDE copied to clipboard
Feature to save code written in a language while switching to another language
User's code on one language gets erased on switching to another language. I'm willing to take this up.
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.
Sure, the approach is pretty basic, here's what I think :
- 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.
- 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.
Hi @sahildua2305 , Please review my PR for the mentioned issue. Let me know if any changes are required. :) Thanks.
Hi, Is this still open? I want contribute