270 likes | 363 Views
你不知道 的 Visual Studio 2010. 多 奇數位創意 有限公司 技術總監 黃保翕 ( Will 保哥 ) 部落 格: http://blog.miniasp.com/. 1. 摸熟你的 IDE. 各式 開發密技大公開. 最近使用的專案可任意釘選或移除. 分割視窗 、字體縮 放、停駐技巧. 切換為全螢幕模式. Alt + Shift + Enter. 增強的區塊選取與編輯功能. 可一次編輯多 行 支援零寬度選取,可多行同時輸入 快速鍵 Alt + Shift + 鍵盤方向鍵 Alt + 滑鼠左鍵. 活用工具箱.
E N D
你不知道的Visual Studio 2010 多奇數位創意有限公司 技術總監 黃保翕 ( Will 保哥 ) 部落格:http://blog.miniasp.com/ 1
摸熟你的 IDE 各式開發密技大公開
切換為全螢幕模式 • Alt + Shift + Enter
增強的區塊選取與編輯功能 • 可一次編輯多行 • 支援零寬度選取,可多行同時輸入 • 快速鍵 • Alt+ Shift + 鍵盤方向鍵 • Alt + 滑鼠左鍵
活用內建的程式碼片段 ( Visual C# ) • if、else、for、forr、foreach、 do、while • namespace、class、interface、struct、enum • ctor、using、prop、propfull • try、tryf • switch • '
推薦好用的程式碼片段下載 • jQuery Code Snippets for Visual Studio 2010 • http://jQuerySnippets.codeplex.com/ • 在 Visual Studio 2010 活用 jQuery 的開發工具使用技巧 • StyleCop Compliant Visual Studio • Code Snippets • http://vssnippets.codeplex.com/ • Project & Item Templates • http://vstemplates.codeplex.com/ • Code Snippets for Design Patterns • http://snippets4dp.codeplex.com/ • .NET Zen Code Snippet Repository • http://vstemplates.codeplex.com/
必學的快速鍵 • Ctrl + E • 到處都能用的搜尋快速鍵 • Ctrl + . (小數點) • 引用命名空間 • 找不到怎麼辦?載入參考組件! • 開啟智慧標籤 (Smart tag) • 依據使用方式自動產生程式碼骨架 (Generate from Usage) • 實做 Interface 方法 • Ctrl + , (逗號) • 巡覽至 • Ctrl + j , Alt + → • 開啟 Intellisense 選單 • Visual Studio 2010 支援 PASCAL CASE 比對
可浮動/可釘選的 DataTips • 可浮動 • 可釘選 • 可加上註解 • 可匯入/匯出
中斷點強化管理機制 • 將看到的中斷點匯出成 XML 檔案 • 從 XML 檔案匯入中斷點 • 搜尋所有中斷點(可見的文字都可以搜尋) • 可以讓你依據不同的模組進行標籤設定 • 叫用次數:可以讓你看出特定中斷點在本次偵錯中到底被呼叫了幾次。
活用工具 Visual Studio 2010 擴充管理員
藏經閣 各式好用擴充套件介紹
Productivity Power Tools • Quick Access • HTML Copy • Quick Find • Tab Well UI • Column Guides • Solution Navigator • Tools Options Support • Auto Brace Completion • Searchable Add Reference Dialog
Web Standards Update for VS2010 SP1 • 編輯網頁檔案時提供最新的 HTML5 支援 • 編輯 CSS 檔案時提供最新的 CSS3 支援
NuGet 套件管理員 • NuGet Visual Studio extension • NuGet Package Explorer • NuGet.exe Command Line • 示範 • jQuery • Elmah • NLog
VS10x Code Map v2 • 程式碼視覺化 • 程式碼折疊與同步更新 • 導覽與歷史編輯紀錄 • 高亮度顯示我的最愛項目 • 自訂具名書籤 • 快速篩選成員 • *.vs10x
All-In-One Code Framework Sample Browser • 下載 All-In-One Code Framework 原始碼 • http://1code.codeplex.com/releases • 使用Visual Studio 2010 擴充管理 • 安裝 All-In-One Code Framework Sample Browser 擴充套件
參考連結 • Visual Studio 2010 開發技巧文章 • http://msdn.microsoft.com/zh-tw/vstudio/hh220638.aspx • The Will Will Web | Visual Studio • http://blog.miniasp.com/category/Visual-Studio.aspx • The Will Will Web | VS2010 Tips • http://blog.miniasp.com/category/VS2010-Tips.aspx
聯絡資訊 • The Will Will Web記載著 Will 在網路世界的學習心得與技術分享 • http://blog.miniasp.com/ • ★ ★ ★ Will 保哥的噗浪 ★ ★ ★ • http://www.plurk.com/willh/invite • Will 保哥的技術交流中心 (臉書粉絲專頁) • http://www.facebook.com/will.fans