• vs macro shortcuts


    //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]

    @IS2120#CNBLOGS.T2169364049[T1,L65,R1,V259]:备忘
    $ € ₤ ₭ ₪ ₩ ₮ ₦ ₱ ฿ ₡ ₫ ﷼ ¥ ﷼ ₫ ₡ ฿ ₱ ₦ ₮ ₩ ₪ ₭ ₤ € $
  • 相关阅读:
    简练网软考知识点整理-易混概念项目绩效评估与团队绩效评价
    简练软考知识点整理-项目索赔管理
    项目管理工作执行数据和信息流向的一致性
    简练软考知识点整理-确认范围和质量控制
    简练软考知识点整理-项目全面质量管理TQM
    简练网软考知识点整理-项目整体绩效测量基准
    RAID 技术全解
    Centos 7 查看内存占用情况相关命令
    使用xshell连不上ubuntu14.04
    Shell脚本
  • 原文地址:https://www.cnblogs.com/IS2120/p/6745682.html
Copyright © 2020-2023  润新知