For the past few weeks, I have been working with Node JS a lot, and i have found it pretty annoying to have to execute the file through cmd every time i want to test.
在过去的几周里,我一直在使用Node JS,我发现每次我想要测试时都必须通过cmd执行文件是非常烦人的。
To make my life easier, I have made a batch file that executes my file for me. My question is how do I execute files directly from notepad++?
为了方便我的工作,我制作了一个批处理文件来执行我的文件。我的问题是如何直接从notepad++执行文件?
Is there a menu for it? Currently on my left I have a menu that lets me navigate between my files easily. On my right, I have a NppFTP UI that lets me connect to the FTP server, if I need to work on files that are not on my system.
有菜单吗?在我的左边,我有一个菜单,让我可以轻松地在我的文件之间导航。在我的右边,我有一个NppFTP UI让我连接到FTP服务器,如果我需要处理不在我的系统上的文件。
I highly suspect that there is a way to execute files directly from Notepad++.
我非常怀疑有一种方法可以直接从Notepad++中执行文件。
1 个解决方案
#1
3
Although my answer doesn't directly answer your question, it will resolve the problem you were facing in the first place.
虽然我的回答不能直接回答你的问题,但它将首先解决你所面临的问题。
There is something called nodemon which will restart your node process as soon as you save your changes. It's very simple to use:
有一个叫做nodemon的东西,当您保存更改时,它将重新启动您的节点进程。使用起来很简单:
To install :
如何安装:
npm install -g nodemon
To use:
使用方法:
nodemon app.js
or Just [it automatically grabs the default app.js file or other]
或者只是[它自动获取默认的app.js文件或其他]
nodemon
You can learn more about this here: http://nodemon.io/
你可以在这里学到更多:http://nodem.io/。
#1
3
Although my answer doesn't directly answer your question, it will resolve the problem you were facing in the first place.
虽然我的回答不能直接回答你的问题,但它将首先解决你所面临的问题。
There is something called nodemon which will restart your node process as soon as you save your changes. It's very simple to use:
有一个叫做nodemon的东西,当您保存更改时,它将重新启动您的节点进程。使用起来很简单:
To install :
如何安装:
npm install -g nodemon
To use:
使用方法:
nodemon app.js
or Just [it automatically grabs the default app.js file or other]
或者只是[它自动获取默认的app.js文件或其他]
nodemon
You can learn more about this here: http://nodemon.io/
你可以在这里学到更多:http://nodem.io/。