How to display names of objects in viewport
Select all objects by hiting A. Then in the
Properties areas Object tabs Display
group check the checkbox Name for name display.
Then right click the checkbox and select the option
Copy To Selected. Works on almost all options.

Edit: In current versions, using alt-click on
properties applies them for every selected object.