notepad++ 运行nodejs
- 安装
安装 NppExec插件
方法2:手动安装
https://github.com/d0vgan/nppexec/releases
2 . 设置
按f6填写
if $(EXT_PART) ==.js goto node
if $(EXT_PART) ==.mjs goto node
Echo It's not a .js file
goto end
:node
cd $(CURRENT_DIRECTORY)
node $(FILE_NAME)
:end
- windows console output 设置 utf-8
- 设置快捷键