かっこ付ける
1
to affect a stylish air;to try to look good;to show off
あいつは、女の子がいるとかっこつけたがるんだから。
He's a big show-off when girls are around.