Not that you or I would ever need to do such a thing …
but just in case a friend of a friend ever deletes a file using the SDK (or NetBeans 8.2) and is desperate to recover their hours of precious work, here’s a trick that might rescue them:
- Open the “Files” window using Ctrl-2 or “Window” -> “Files”.
- Navigate to the parent folder/directory where the file used to be.
- Right-click on that folder and select “History” -> “Revert Deleted”.
- Check the checkbox next to the file you—I mean, they—wish to undelete.