therat2000
therat2000

Reputation: 71

How can I lookup interactively the inferred type of a variable within the vscode IDE?

Some IDEs allow you to inspect the inferred type of a variable (i.e. IntelliJ provides Scala types using Ctrl-Shift-P). Does the DAML IDE provide something like that?

Upvotes: 3

Views: 1499

Answers (1)

cocreature
cocreature

Reputation: 811

You can use Ctrl-K Ctrl-I (or Cmd-K Cmd-I) which is the shortcut for displaying hover information which will also include the type. At the moment, there is nothing that only shows you the type. Take a look at https://code.visualstudio.com/docs/getstarted/keybindings#_rich-languages-editing for more shortcuts.

Upvotes: 2

Related Questions