I'm making a videogame in Unity using the C# language and VS Code as the editor. Since I often have temporary code laying around that I have to comment and remember to remove afterwards, it would be nice to have some kind of [Temp] attribute to apply to anything. It would work exactly like [Obsolete], in the sense that it gives a compiler warning so that I don't forget about it, but instead of printing "This thing is obsolete" it prints something like "There's a temporary thing you still haven't removed".
Now, my questions are:
- Does something like that already exist? Because I haven't found anything
- If it doesn't exist, I guess I could define my own custom attribute class. But I have no idea of how to cause a compiler warning manually in VS Code. Is it possible?