適用於 Visual Studio 的 Node.js 工具
將 Visual Studio 打造為強大的 Node.js 開發環境![screenshot of project templates](https://visualstudio.microsoft.com/wp-content/uploads/2016/04/Project-templates-1.png)
專案範本
快速入門並開始作業
在 Visual Studio 中使用內建專案範本開始建置 Node.js 應用程式。 或者,使用您已熟悉的命令列 Scaffolding 工具來產生專案,且只需按幾下既可將之匯入 Visual Studio。
![screenshot of IntelliSense](https://visualstudio.microsoft.com/wp-content/uploads/2016/06/InteliSense.png)
![screenshot of npm integration](https://visualstudio.microsoft.com/wp-content/uploads/2016/04/npm-integration.png)
npm 整合
npm 到處都是,就該如此
無論您偏好透過豐富的使用者介面、命令列或兩者與 npm 互動,一切都包在我們身上。 馬上透過豐富的使用者介面搜尋並安裝套件、在 npm 樹狀檢視中探索套件及其相依性、並在您其中一項相依性遺漏時查看警告。
Interactive 視窗
更快速地逐一查看
輸入 Node.js 程式碼並立即在 Node.js 互動視窗 (也稱為 REPL 視窗) 中查看結果。 您可以使用與您在 Node.js 指令碼中所使用的相同內建模組、語法、以及變數。 當然,您的程式碼上也會有完整語法醒目提示以及 IntelliSense,就像您在編輯器內所做的一樣。
![screenshot of Interactive Window](https://visualstudio.microsoft.com/wp-content/uploads/2016/06/Window.png)
![screenshot of Visual Studio’s interactive debugger](https://visualstudio.microsoft.com/wp-content/uploads/2016/06/Debugging.png)
進階偵錯
本機與遠端至任何 OS
程式碼剖析
追蹤效能問題
您可利用分析報告檢視應用程式結構的不同層級 (舉凡原始程式碼行或處理序),以及取得程式執行資料 (舉凡特定函式的呼叫函式及所呼叫函式,或是整個應用程式的呼叫樹狀結構)。
![screenshot of profiling reports](https://visualstudio.microsoft.com/wp-content/uploads/2016/06/Profiling.png)
![screenshot of Node.js Tools for Visual Studio](https://visualstudio.microsoft.com/wp-content/uploads/2016/06/UnitTesting.png)
單元測試
帶上您自己的測試架構
適用於 Visual Studio 的 Node.js 工具包括探索及執行單元測試支援。 讓您能夠撰寫、執行、除錯,以及篩選單元測試,而不須切換至命令提示字元。 使用 Mocha,或是僅需擴充 Visual Studio 即可使用您所偏好的單元測試架構。
TypeScript 整合
建置強固的應用程式
TypeScript 是 JavaScript 的超集,能編譯乾淨的 JavaScript 輸出。 TypeScript 新增選用的類型、類別及模組,讓您能夠撰寫更加便於維護的程式碼,並充分利用更強大的工具。 適用於 Visual Studio 的 Node.js 工具針對在您的 Node.js 應用程式中使用 TypeScript 提供完整端對端支援 (舉凡 IntelliSense 或單元測試)。
![screenshot of TypeScript integration](https://visualstudio.microsoft.com/wp-content/uploads/2016/06/TypeScript.png)
![screenshot of Team Explorer](https://visualstudio.microsoft.com/wp-content/uploads/2016/06/SourceControl.png)
原始檔控制
不需要命令列
使用 Team Explorer 輕鬆管理您的 Git/TFS 專案、暫止變更以及分支。 或者試試眾多適用於 Visual Studio 的其中一項原始檔控制延伸模組。
雲端整合
在 5 分鐘內建立及部署
建立、測試及部署以 Node.js 撰寫的 Web 應用程式,然後在 Linux 或 Windows 伺服器上執行這些應用程式時,加以偵錯。 此外,充分利用 Visual Studio 與跨平台適用於 Node.js 的 Azure 服務之間緊密的整合 – 即使您沒有要部署至 Azure (例如 使用 Application Insights 來監視您即時應用程式的效能以及使用量)。
![screenshot of integration with cross-platform Azure services for Node.js](https://visualstudio.microsoft.com/wp-content/uploads/2016/06/CloudIntegration.png)
![screenshot of JavaScript and Node.js extensions](https://visualstudio.microsoft.com/wp-content/uploads/2016/06/Customize.png)
自訂您的工具
grunt、gulp 等擴充功能!
使用 Visual Studio 組件庫中眾多可用的 JavaScript 以及 Node.js 擴充功能讓您的經驗更加美好。 熱門的擴充功能包括:
- 套件 IntelliSense
- Web Essentials (包括 jslint 以及 jshint 支援)
- 工作執行器總管 (適用於 grunt 以及 gulp)
- EditorConfig
免費且開放的原始碼
加入 GitHub 社群
適用於 Visual Studio 的 Node.js 工具是一項 Microsoft 和社群所支援之免費且開放的原始碼 Visual Studio 擴充功能。 我們持續努力精進 Visual Studio 中的 Node.js 體驗,並期待收到您的任何意見反應或想法 (尤其是以提取要求格式呈現的意見反應或想法)。
![screenshot of Node.js Tools for Visual Studio](https://visualstudio.microsoft.com/wp-content/uploads/2016/06/OpenSource.png)