I was able to keep VsCode autosave enabled and nodemon is restarting the server automatically after using this solution : NodeJS - nodemon not restarting my server. hope this helps (I'm working with WSL2 (Ubuntu20.04))