Re: [aus-dotnet] Printing out modified VS2005 Keyboard Reference chart, where for art thou utility?


    [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
    • From: Himanshu
    • Subject: Re: [aus-dotnet] Printing out modified VS2005 Keyboard Reference chart, where for art thou utility?
    • Date: Tue, 12 Jun 2007 18:01:04 -0700

    If you need something really simple,you can write macro like this.
     
    ------------------------------------------------------------------------------------------------------------------------------------------

    Sub

    ListKeyBindings()

    Dim bindings() As Object

    Dim binding As Object

    Dim prop As EnvDTE.Command

    Dim sb As New System.Text.StringBuilder

    Try

    For Each prop In DTE.Commands

    If Not IsNothing(prop) Then

    If Not String.IsNullOrEmpty(prop.Name ) Then

    bindings = DTE.Commands.Item(prop.Name).Bindings

    If Not IsNothing(bindings) Then

    For Each binding In bindings

    If Not String.IsNullOrEmpty(binding) Then

    sb.AppendLine(binding)

    End If

    Next

    End If

    End If

    End If

    Next

    Catch ex As Exception

    'ignore any errors

    End Try

    MsgBox(sb.ToString())

    End Sub
    --------------------------------------------------------------------------------------------------
    Himanshu

     
    On 6/13/07, William Luu <WilliamL@xxxxxxxxxxxxxx> wrote:
    This should do the trick:
     
    -----Original Message-----
    From: Jason Finch [mailto: jfinch@xxxxxxxxxxxxxxxxxxxx]
    Sent: Wednesday, 13 June 2007 9:39 AM
    To: dotnet@xxxxxxxxxxx
    Subject: [aus-dotnet] Printing out modified VS2005 Keyboard Reference chart, where for art thou utility?

    Is anyone in the know of some sort of gizmo that will print out all the currently defined keyboard shortcuts in VS2005?  Either from within the IDE, externally or via interpretting the exported settings xml file?
     
    I customize the keyboard quite heavily (due to addon products assignment etc) therefore 'off the shelf' PDF's of keyboard shortcuts are next to useless.
     
    Thanks,
    Jason
     
    This correspondence is for the named persons only.
    It may contain confidential or privileged information or both.
    No confidentiality or privilege is waived or lost by any mis transmission.
    If you receive this correspondence in error please delete it from your system immediately and notify the sender.
    You must not disclose, copy or relay on any part of this correspondence, if you are not the intended recipient.
    Any opinions expressed in this message are those of the individual sender except where the sender expressly,
    and with the authority, states them to be the opinions of the Department of Emergency Services, Queensland.




    (Click here for more information on the aus-dotnet mailling list)