expression
in the same way as; just like
Used to compare actions or states, indicating similarity in manner. Follows a noun or verb phrase.
彼はプロと同じようにギターを弾く。
He plays the guitar just like a pro.
私と同じように、彼女も毎朝ジョギングをしている。
Just like me, she goes jogging every morning.
「のように」 is more general for likeness or simile, while 「と同じように」 explicitly emphasizes sameness of manner.
Phrase composed of the particle と (quoting/resultative), 同じ (same), よう (appearance/manner), and に (adverbial). The combination literally means 'in the same manner as'.