How the File Tag Works

Hi, I’m trying to find the best prompt to use in Cursor.

I’d like to understand how file tagging works when the file tag appears at the beginning, in the middle, or at the end of a sentence.

How does it behave in each case? How does Cursor interpret and deliver the content of a tagged file depending on its position?

Also, is there a recommended way to tag files?