Altium: How to place the pin name inside rectangle in schematic library
Press the space bar (as you drag) to 'rotate' the pin. The designator and "X" will swap sides for orientations 180° apart.

I say 'rotate' in quotations because it's not quite a rotation so much as a "side of the IC package the pin will be placed on" setting.