Lock Text/Code (don't touch my code)

Just reading through the forums can be fun and informative.

Anyways, a feature where you can highlight text/code to lock it, so it can’t be edited/removed by composer or apply from chat and if the locked code is required to change put the change below the locked code and inform the user.

I think many people have experienced Cursor removing their code (not intentionally I hope). This feature could maybe help with that.

Maybe color code it (color can be seen on the tab) so the user can see which files have locked code.

1 Like

One thing I do that limits this kind of regression is that I force Cursor to maintain a comment at the beginning of the file that lists the functionalities and constraints as we add them. I put this in the instructions for the model, and it has greatly reduced accidental deletions by Cursor.

1 Like