I used Sublime Text 2 to download the nodejs package (https://github.com/tanepiper/SublimeText-Nodejs), but I can’t seem to find a way that will restart or stop the server besides my having to go into the task manager and killing the process. When using the command provided by the plugin to run the file with node, it doesn’t give you any kind of command window, so Ctrl+C won’t work.
I’ve found a couple hackish way of doing things such as a .bat file that looks up the process running on a specific port, then killing it. Then there are a couple linux commands that don’t benefit me since I’m on Windows.
I was hoping someone on here would see this and know a solution I could use to easily start and stop the node server for development.
I think the best solution for you here is to use a module called Nodemon which restarts your node server everytime you save a file inside the project.
https://github.com/remy/nodemon