Protecting source code from theft during development
Is there any way to protect my code during development so that if a developer leaves my company they are unable to access files in my project? 

This is especially important with TFS where the project is downloaded locally, cached, and available for offline use.  Ideally the code would be unreadable if they did not have a valid Active Directory user ID.
Protecting source code from theft during development
===

Is there any way to protect my code during development so that if a developer leaves my company they are unable to access files in my project? 

This is especially important with TFS where the project is downloaded locally, cached, and available for offline use.  Ideally the code would be unreadable if they did not have a valid Active Directory user ID.