There are 2 ways to show file extensions in a SharePoint document library


Method1

This solution can be seen in context by clicking here.

Method2


After making a change to ONET.XML you have to do IISRESET