How to input a tab?

Things I have tried

The default action when you press the tab key is increasing the indent
Is there a way to input tab in the middle of line?
when typing in the code block, sometime, I needs this key.

What I’m trying to do

I want to know if there is an easy way that I can input tab in the middle of the line.

I believe there is not. You could copy-paste, setup a template, or use an external text expander (Mac and iOS have one built in).