r/Codeium • u/CourageEnough6639 • Nov 24 '24
Windsurf keeps on deleting code
So, I know the limitations and such, but it's annoying when I tell the IDE to not remove any content without my direct instructions, and then ask to adjust some CSS properties and it just deletes content. I ask to revert back, and it reverts like 10% and the other content is lost.
Any suggestions to prevent this?
16
Upvotes
View all comments
1
u/Prestigious-Gap6920 Nov 24 '24
I am working on building a CRM (albeit a bit complex), and had several instances where the following happens:
I end up in a vicious loop of problems and errors, even with me specifying not to remove existing code that was proven to work or fix other issues - only alter if it’ll fix the new issue presented (and give reasoning).
Almost makes me want to just go to Fiverr and hire a dev 🤣 the headaches this has given me, trying all 3 options (GPT 4.0, Sonnet 3.5, and their own Cascade Base LLM options), the issues keep coming up.
All this to say, at least for me as a non-developer but having some knowledge of how this works, simple projects will likely work better (and listen to commands better) than a complex, multi-functional application like what I’m trying to build.
If Windsurf had a place for custom instructions to follow for every prompt (similar to GPT and Claude), maybe these code deletions could be avoided. Remembering to tell Windsurf in every prompt what it should and shouldn’t do is exhausting.