Long ago I assigned the “Close Tab” shortcut to ⌘-F19 in #Xcode instead of the default ⌘-W because it would stupidly trigger to “Close Window” if it’s on the last tab… result: no more accidentally closing my projects 2 billion times a day…