vs macro shortcuts
2014-03-19 10:32
155 查看
//z 2014-03-19 10:33:54 BG57IV3@XCL T1358502808.K.F1944110823[T57,L923,R36,V1131]Imports System
Imports System.IO
Imports EnvDTE
Imports EnvDTE80
Imports System.Diagnostics
Public Module Module2
Public Sub ListShortcutsInHTML()
'Declare a StreamWriter
Dim sw As System.IO.StreamWriter
sw = New StreamWriter("c:\\demo\\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
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=""Tahoma"">")
sw.WriteLine("<table border=""1"">")
sw.WriteLine("<tr BGCOLOR=""#018FFF""><td align=""center""><b>Command</b></td><td align=""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
//z 2014-03-19 10:33:54 BG57IV3@XCL T1358502808.K.F1944110823[T57,L923,R36,V1131]
相关文章推荐
- 腾龙17-50 VS 适马17-70 os macro VS 蔡司 16-80 之一:分辨率
- when to use define macro vs generate
- VS 2015 编译一些库的时候,出现 error “fatal error C1189: #error: Macro definition of snprintf conflicts with St
- C++OOP基础知识点1)——inline vs macro
- vs 2015 编译cocos2dx 报错C1189 #error: Macro definition of snprintf conflicts with Standard Library func
- Some MACRO In VS Project Setting
- vs 2015 编译cocos2dx 报错C1189 #error: Macro definition of snprintf conflicts with Standard Library func
- Macro vs Proc
- template vs macro
- Shortcuts for VS.Net
- Inline vs macro
- VS 2008 可扩展性开发(二):Macro和Add-In初探
- scheme macro vs common lisp macro
- [VS Macro]CollaposeAll Projects in Solution
- vs 2015 编译cocos2dx 报错C1189 #error: Macro definition of snprintf conflicts with Standard Library func
- macro Vs inline
- Macro VS Subroutine(ABAP)
- Rotor实现中用到的Macro(摘自Shared Source CLI Essentials)
- 转载---vs 快速开发必备
- STL vector vs list function comparison: