This has been bothering me for ages.
In Sublime, I know cmd+W will close a file but how do I toggle to the "Don't Save" option if I just want to close a file without saving?
Kill sublime if it's open: press WindowsBtn+R and enter taskkill /F /IM sublime_text.exe Next time you open up Sublime, a single empty window will show. Process is probably similar for other OS too. Save this answer.
If you just select Close, the program stops using the file but does not save any changes. It may mean you want the program to work with a different file. If you have not yet done a Save, the program may remind you and ask if you want to save it first.
People often forget to save files (I've been guilty of it myself), autosave will make sure your files are saved, even if you forget. This is especially important for code since any changes you make to your code will not be shown until your file has been saved (sometimes you might also need to restart your server).
Cmd-shift-w closes the whole window.
Press cmd-'d' (the d stands for for Don't)
For mac, try:
rm ~/Library/Application\ Support/Sublime\ Text\ 3/Local/Session.sublime_session
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With