Don’t accidentally allow unsafe code

This seems so dangerous. I can’t believe Microsoft has let it slip through QC for the past couple Visual Studio releases.

As a keyboard junkie, I expect ALT+F,C to close the currently open file. Or if I want to save the current file, ALT+F,S should do the trick. That’s not the case if you’re on the Build tab of a project’s properties screen (Figure 1). Here, ALT+F is going to Allow unsafe code!!!

Figure 1

It’s not too hard to catch on that something isn’t right when you use an ALT+F combination on this screen because, typically, the desired action won’t occur. It still throws me off every time it happens, but I’m keen enough to go back and make sure I uncheck uncheck that nasty little checkbox.