I come from java background and similar languages where if I want to find the source of some built-in function I just press ctrl-left click on it and in newer IDEs it shows the source which is written in the same language as the language I am programming in. In javascript, however, it's a bit different - the source code is displayed as *.d.ts
. I found that sometimes to solve this problem VS Code has the option to go to "Source Definition"
but it doesn't work for everything. For example, if I want to see what the right definition of the Promis
object is (in javascript), it just doesn't show me what I want
Maybe this can somehow be set in IDE, or am I missing something?