Is there a keyboard shortcut to evaluate an expression in the Clock window in Visual Studio?

If you use a method call in an expression in the viewport, Visual Studio does not constantly evaluate the expression all the time and instead says

This expression causes side effects and will not be evaluated.

I appreciate the need for this, but every time I want to evaluate the expression, the only ways I've found so far are:

  • Press revaluation button - mouse capture required, yuck
  • Edit the expression to add a finite space - an awkward workaround

I have already looked at the list of commands to which I can assign keyboard shortcuts, and the only thing I found is Debug.EvaluateStatement, which sounds exactly what I need, but it does not seem to have any effect.

Is there a keyboard command for evaluating expressions in the viewport?

+4
source share
1 answer

Space shortcut required. However, this is not a custom command.

+3
source

Source: https://habr.com/ru/post/1337062/


All Articles