How to programmatically verify a context
September 25th, 2010
Comments off
Here’s a sample code of how to programmatically verify a particular context inside of your DXCore plug-in. You may achieve this using the Context service like this:
CSharp code:
ContextResult result = CodeRush.Context.Satisfied(@"Focus\Documents\Source\Code Editor"); bool editorHasFocus = result == ContextResult.Satisfied;