vs2008快捷键生成
2010-02-10 21:48
309 查看
Imports System
Imports EnvDTE
Imports EnvDTE80
Imports EnvDTE90
Imports System.Diagnostics
Imports System.IO
Public Module Module1
Public Sub ListShortcutsInHTML()
'Declare a StreamWriter
Dim sw As System.IO.StreamWriter
sw = New StreamWriter("d:\\Shortcuts.html")
'Write the beginning HTML
WriteHTMLStart(sw)
' Add a row for each keyboard shortcut
For Each c As Command In DTE.Commands
If c.Name <> "" Then
Dim bindings As System.Array
bindings = CType(c.Bindings, System.Array)
For i As Integer = 0 To bindings.Length - 1
sw.WriteLine("<tr>")
sw.WriteLine("<td>" + c.Name + "</td>")
sw.WriteLine("<td>" + bindings(i) + "</td>")
sw.WriteLine("</tr>")
Next
End If
Next
'Write the end HTML
WriteHTMLEnd(sw)
'Flush and close the stream
sw.Flush()
sw.Close()
End Sub
'Declare a StreamWriter
Public Sub WriteHTMLStart(ByVal sw As System.IO.StreamWriter)
sw.WriteLine("<html>")
sw.WriteLine("<head>")
sw.WriteLine("<title>")
sw.WriteLine("Visual Studio Keyboard Shortcuts")
sw.WriteLine("</title>")
sw.WriteLine("</head>")
sw.WriteLine("<body>")
sw.WriteLine("<h1>Visual Studio 2005 Keyboard Shortcuts</h1>")
sw.WriteLine("<font size=""2"" face=""Verdana"">")
sw.WriteLine("<table border=""1"">")
sw.WriteLine("<tr BGCOLOR=""#018FFF""><td align=""center""><b>Command</b></td><tdalign=""center""><b>Shortcut</b></td></tr>")
End Sub
Public Sub WriteHTMLEnd(ByVal sw As System.IO.StreamWriter)
sw.WriteLine("</table>")
sw.WriteLine("</font>")
sw.WriteLine("</body>")
sw.WriteLine("</html>")
End Sub
End Module
.codearea{ color:black; background-color:white; line-height:18px; border:1px solid #4f81bd; margin:0; width:auto !important; width:100%; overflow:auto; text-align:left; font-size:12px; font-family: "Courier New","Consolas","Fixedsys","BitStream Vera Sans Mono", courier,monospace,serif}
.codearea pre{ color:black; line-height:18px; padding:0 0 0 12px !important; margin:0em; background-color:#fff !important}
.linewrap pre{white-space:pre-wrap; white-space:-moz-pre-wrap; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word; word-break:normal}
.codearea pre.alt{ background-color:#f7f7ff !important}
.codearea .lnum{color:#4f81bd;line-height:18px}
相关文章推荐
- Intellij idea 快捷键2--生成常用代码
- 解决VS2008 开发Windows Mobile 项目生成速度慢的问题
- Eclipse自动生成返回值对象的快捷键是什么?
- vs2008快捷键极其技巧
- VS2005、VS2008中的快捷键、组合键大全
- win7下vs2008,vs2010编译sqlite源码,生成sqlite3.lib
- VS2008生成安装包问题:验证时出错。HRESULT = '80004005'
- SQL SERVER 2005/vs2008快捷键
- VS2008下编的程序生成的EXE 在没有安装VS2008的计算机上能运行
- 非常实用的办法IDEA解决alt+insert快捷键生成getter,setter方法不带注释问题
- Eclipse4.7基础 快捷键 生成输出println语句 输入syso按alt+/
- vs2008专业版无法生成debug文件解决方案
- VS2008中error PRJ0003 : 生成 cmd.exe 时出错
- vs2008中编译动态库时生成lib的设置
- VS2008快捷键大全
- Intellij idea 快捷键(1)--生成for循环代码块
- vs2008生成的各种文件
- eclipse自动生成方法注释 快捷键
- VS2008 动态库和静态库的生成和加载
- VS2008 编译出现 error PRJ0003 : 生成 cmd.exe 时出错