There are several ways to do this in Visual Studio. Here are a few different hooks available.
IOleCommandTarget: Key strokes in Visual Studio will ultimately present themselves as commands and will be routed through this chain.KeyProcessor: for direct input of the WPF keyboard, you can create an MTA component IKeyProcessorProviderand create a created KeyProcessorinput descriptorITextBuffer::Changed: .
, SO . google, .
, Visual Studio - . Windows, Visual Studio, WPF, MEF-, - .. , . , Visual Studio , .
.