TL;DR If you’ve never heard the term, code switching is where you modify your speech or behavior or outward appearance to adapt to and be accepted in a certain environment. I think we all do it. I know I certainly have. I mean, at one point in my life I was a frightened young conservative from an extremely small town in deep south Texas and had to find my way in New England academic circles for 2 years. There was definitely some code switching for me.