Using the Parts Filter:

Change the Parts Filter entry field from * to *.cpp and press Enter.