2019年10月26日 星期六

Visual Studio+ ReSharper : 常用快速鍵




  • 產生 class (Alt+Enter)
  • 產生變數 (Alt+Enter)
  • 產生 function (Alt+Enter)
  • 執行所有測試 (Ctrl+R, A)
  • introduce field (Ctrl+R, F)
  • extract method (Ctrl+R, M)
  • 提取參數 (Ctrl+R, P)
  • inline 不必要的變數 (Ctrl+R, I)




資料參考:
Resharper快捷键及用法
https://www.cnblogs.com/shy1766IT/p/5485451.html

Resharper - Alt + Enter not working


Alt + Enter 是 Resharper 的快速鍵,可以快速生成Class
如果失效,可以用下列步驟修復






  1. Resharper -> Options -> Keyboard & Menus
  2. Select "ReSharper 2.x or IntelliJ IDEA"
  3. Click "Apply Scheme"
  4. Click "Save"
  5. Resharper -> Options -> Keyboard & Menus
  6. Select "Visual Studio"
  7. Click "Apply Scheme"
  8. Click "Save"

2019年10月7日 星期一

Visual Studio crashes - Can not open project



Delete contents of these 2 folders
C:\Users\%USERNAME%\AppData\Roaming\Microsoft\VisualStudio\
C:\Users\%USERNAME%\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache
Then run the VS.NET as admin, 
otherwise it won't be able to renew the Roaming folder correctly.