HotExit settings


When you quit the VS Code editor, you might lose all the changes you are working on because of the VS Code limitations. Therefore, VS Code has provided the controls on whether unsaved files are remembered between sessions, allowing the save prompt when exiting the editor to be skipped.

Click the Manage icon (image2022-8-23_21-35-26.png) of the VS Code application, and in the search bar, search the HotExit setting to access the controls.

In the Files: HotExit setting the following options are displayed.

  • off: This will stop you from instantly closing the editor, by providing a prompt.
  • onExit: This will allow you to close the instance without prompting you to save the file if it's the last VS Code instance remaining. This is the default setting.
  • onExitAndWindowClose: This will never prompt you for instance close whether it's the last VS Code instance remaining or not.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*