Is there a way to fingerprint the code in such a way that it's quite difficult to detect/remove but easy to trace?
People are going to copy anyway, everything is a copy of something. But if you create your own style so perfected that it cannot be copied without tremendous amount of time, you are already ahead of everybody else in your skill.
Also, more time to develop your skill than to waste time on trying to prevent somebody else doing the same thing.