20

How can I get the keystrokes I enter to be displayed on-screen in VS Code? This would be for presenting or doing screencast.

starball
  • 20,030
  • 7
  • 43
  • 238

3 Answers3

36

v.1.31 has added a screencast mode, see toggle screencast mode:

Screencast Mode

There is a new Screencast Mode in VS Code, which highlights the cursor position and keystrokes. Screencast Mode (Developer: Toggle Screencast Mode) can be useful for demonstration purposes.

demo of screencast mode

There are a couple of accompanying settings:

Screencast Mode: Only Keyboard Shortcuts

Only show keyboard shortcuts in Screencast Mode.

Screencast Mode: Vertical Offset

Controls the vertical offset of the screencast mode overlay from the bottom as a percentage of the workbench height.

Mark
  • 143,421
  • 24
  • 428
  • 436
4

Carnac should work as normal in VSCode - have you launched Carnac as adminitrator? It needs elevated privileges to read input without focus.

MoreThanTom
  • 526
  • 2
  • 9
  • Well look at that...the one thing I had not done. Sure enough works. –  Aug 15 '18 at 14:35
  • Second read and this is not actually the full reason. It has nothing to do with focus because the app I'm trying to use is the "focused" app I'm using. –  Aug 19 '18 at 04:15
3

I figured out the full reason this was not working is because I have VS Code starting in elevated privileges. So Carnac apparently cannot work against the application when it is not running under elevated privates as well.

I started VS Code as normal user, and start Carnac then everything works as expected.

I start VS Code as elevated user (as admin) and then Carnac has to be running in the same fashion for it to pick up the keystrokes.

  • VSCode screencast mode show the keys being pressed (normal typing) as well, is there any way it would only show combination keys pressed and not the normal keys I press for typing? – MakeBugsNotWar Jun 29 '23 at 13:14