SSMS gives you the option to show a different color in the status bar for different servers. To configure this, click on Options.
Check “Use Custom color” and select a color from the color picker.
Now when you open a new file, your status bar should have the color that you just selected. I usually select a Red color for my production servers. This is a great way to avoid running your query in the wrong environment.