A man walked into a Midtown Starbucks waving a knife Monday morning — all so he could steal a snack, cops said.

The robber, who was still being sought by police, waltzed into the Starbucks on West 42nd Street near 8th Avenue at 11:38 a.m., grabbed an unspecified amount of premade food and walked out, according to the NYPD.

No one was injured in the incident, police said.