惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
News and Events Feed by Topic
爱范儿
爱范儿
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 叶小钗
Last Week in AI
Last Week in AI
博客园 - 三生石上(FineUI控件)
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
月光博客
月光博客
大猫的无限游戏
大猫的无限游戏
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - Franky
人人都是产品经理
人人都是产品经理
The Cloudflare Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 司徒正美
罗磊的独立博客
博客园 - 聂微东
T
Troy Hunt's Blog
美团技术团队
IT之家
IT之家
A
Arctic Wolf
腾讯CDC
雷峰网
雷峰网
SecWiki News
SecWiki News
博客园_首页
L
LINUX DO - 最新话题
Cloudbric
Cloudbric
量子位
N
News and Events Feed by Topic
小众软件
小众软件
C
CXSECURITY Database RSS Feed - CXSecurity.com
Cyberwarzone
Cyberwarzone
J
Java Code Geeks
V
V2EX
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Latest news
Latest news
Webroot Blog
Webroot Blog
F
Fortinet All Blogs
P
Privacy International News Feed
NISL@THU
NISL@THU
Google Online Security Blog
Google Online Security Blog
WordPress大学
WordPress大学
PCI Perspectives
PCI Perspectives
GbyAI
GbyAI
宝玉的分享
宝玉的分享
阮一峰的网络日志
阮一峰的网络日志
S
Secure Thoughts
Simon Willison's Weblog
Simon Willison's Weblog
P
Palo Alto Networks Blog
V
Visual Studio Blog

博客园 - Michael Peng

用马尔科夫模型做拼写检查 商业软件编程很无聊(转载) VS2010 Debugger bug 编程之初 编程之美 1.4买书问题常数时间空间解法 vc2010 std::tr1 bind库捉虫记 用vs2010编译kigg 3.0遇到的问题 最近的一些面试感悟 这两天被vs2010的std::tr1::bind郁闷了 error C2065: '__LINE__Var' : undeclared identifier 写错名字了 啰嗦几句,关于动机,学习与批评,架构和代码风格 金山卫士代码批评 24点计算 部门开始做技术talk 数据库的坏味道 --《Refactoring Database: Evolutionary Database Design》读书笔记 偷天换日 初识rails ruby解数独问题
在vs中获得当前所有快捷键代码
Michael Peng · 2010-12-22 · via 博客园 - Michael Peng

ms-help://MS.MSDNQTR.v90.en/dv_vssettings/html/bbfc1243-fa27-45df-9c4b-6bca181132d6.htm

Sub GetAllCommands()
        
Dim getCommandsWithSCOnly As Boolean
        
Dim cmd As Command
        
Dim cmdCollection As Commands
        
Dim ow As OutputWindow = DTE.Windows.Item(Constants.vsWindowKindOutput).Object
        
Dim owp As OutputWindowPane
        
Dim exists As Boolean
        
Dim i As Integer

        i 

= 1
        exists 
= FalseFor Each owp In ow.OutputWindowPanes
            
If owp.Name = "Macro Output" Then
                exists 
= True
                
Exit ForEnd If
            i 
= i + 1
        
NextIf exists Then
            owp 
= ow.OutputWindowPanes.Item(i)
        
Else
            owp 
= ow.OutputWindowPanes.Add("Macro Output")
        
End If

        owp.Clear()

' Output 1 line per command
        For Each cmd In DTE.Commands
            
Dim binding As Object
            
Dim shortcuts As String

            shortcuts 

= ""For Each binding In cmd.Bindings
                
Dim b As String
                
Dim sArray() As String
                b 
= binding
                shortcuts 
= shortcuts + b + " "
            
Next

            shortcuts 

= shortcuts.Trim()If Not cmd.Name.Trim().Equals(""Then

                owp.OutputString(cmd.Name 

+ vbTab + shortcuts + vbCrLf)
            
Else
                owp.OutputString(cmd.Guid.ToString() 
+ ":" + cmd.ID.ToString() + vbTab + shortcuts + vbCrLf)
            
End IfNext    
End Sub