Tamim Khaja has been ordered to stand trial on charges of plotting a terrorist act and foreign incursions

A Sydney teenager has been ordered to stand trial on charges of plotting a terror shooting spree.

Tamim Khaja, 18, is accused of planning the attack in May and preparing to travel to Syria for ' hostile activities' between January 29 and February 27.

The Macquarie Park resident was allegedly in the process of trying to buy a firearm and suicide vest, and had been sizing up public buildings when he was arrested in May.

Khaja's lawyer waived his right to a committal hearing and did not request bail in Parramatta Local Court on Tuesday, reports Daily Telegraph.

However Magistrate Garry Still ordered the matter to the District Court on December 16, where the 19-year-old is expected to appear via AVL.

Khaja also allegedly tried to travel to Syria but was stopped at Sydney Airport because his passport had been cancelled.

Police believe he was acting alone in planning a terror attack in Sydney.

Tamim Khaja, 18, was arrested in May, while he was trying to purchase a gun off an undercover police officer.

He has pleaded not guilty to preparing a terrorism act this week and preparing for foreign incursions.

Tamim Khaja, 18, was arrested in Macquarie Park in Sydney's north, while he was trying to purchase a gun in May

Khaja allegedly prepared to travel to Syria for ' hostile activities' between January 29 and February 27