Code-switching is when you use more than one language in a conversation or text.
In literature, multilingual authors will use code-switching to make a point. Ex: "We went down to the tienda." instead of "We went down to the store."
People also use code-switching in everyday speech. It is far more common for people who speak more than one language.