Sometimes I have to track down which layout is being used on a particular page. It's not hard to do but it's just an annoyance to go through the steps. And yes they are easy steps, but it's just a waste of time. Even if I rationalize that the steps don't take long, it's still a distraction from the task at hand which breaks me out of the zone or keeps me from getting into it.
I realized there's an incredibly easy solution to this. All I have to do is make a javascript comment with the path to the file being used in that file itself. Then I can simply look at the page source from a web browser and immediately see which file it is.
I can do this manually, but I'd like to know if there is a way I could do it programmatically? It won't really be that big of a deal if I need to add a line of code to each file manually, but a programmatic solution could ensure that no one needs to be told to do this in the future for any new files.