Node.js Tools for Visual Studio (NTVS) 是微軟開源的免費擴充套件,將 Visual Studio 變成功能完整的 Node.js IDE。支援 IntelliSense、npm 套件管理、本地/遠端偵錯(Windows/Mac/Linux)、Profiling、Azure 部署等。NTVS 團隊即 Python Tools for Visual Studio (PTVS) 團隊,品質有保障。
| 範本 | 用途 |
|---|---|
| Blank Node.js Console Application | 最簡主控台專案,僅 console.log('Hello World') |
| Blank Node.js Web Application | 內建 http.createServer 簡易 Web Server |
| Express Application | Express + Jade + Stylus 入門專案 |
| From Existing Node.js Code | 將現有 Node 專案匯入 VS |
| Windows Azure Node.js Web/Cloud Service | 預設 Azure 部署設定 |
輸入 require(' 時自動列出所有已安裝模組,選擇後顯示模組說明;輸入模組名稱後按 . 即顯示所有方法與屬性。支援 package.json 相依套件自動提示。
node.exe 執行啟動檔)npm 節點 → Manage npm Modules...node_modules 並更新 package.json)npm ls)NTVS 支援透過 SSH 遠端偵錯 Linux/Mac 上的 Node 進程;Azure 專案範本內建 web.config、iisnode 設定,發布精靈一鍵部署至 Azure Web Sites 或 Cloud Service。
devenv /updateconfiguration。launchSettings.json 無誤、Node 版本支援 Inspector 協定(0.10.x 需 --debug-brk)。