vscode中的参考路径是什么 [英] What is reference path in vscode
问题描述
我已经下载了适用于Linux的Visual Studio Code,并且正在使用它.我想将它与jQuery intellisense一起使用,并找到了一种在Internet上实现它的方法.一旦完成,某种指令就会添加到我的js文件中.
I have downloaded Visual Studio Code for linux, and I am playing around with it. I wanted to use jQuery intellisense with it, and found a way to do it on the internet. Once I did it some sort of directive was added to my js file.
/// <reference path="typings/jquery/jquery.d.ts"/>
///对纯JavaScript意味着什么?这不是评论,因此javascript解释器如何处理.我也找不到本地vscode文件夹中的路径typings/jquery/jquery.d.ts
. (尽管有一个打字文件夹,但没有名为jquery的文件夹或文件).那么这个文件从哪里链接到我的js文件?
what does /// mean to pure javascript? it's not a comment, so how does javascript interpreter deal with this. also I am unable to find the path typings/jquery/jquery.d.ts
in the local vscode folder. (although there is a typings folder there is no folder or file named jquery). So from where is this file linked to my js file?
推荐答案
Vscode 将看到:
/// <reference path="typings/jquery/jquery.d.ts"/>
,并且知道它必须使用intellisense jQuery
.
and know it must use intellisense jQuery
.
Intellisense是一个vscode功能,可在编写代码时提供即时的上下文感知帮助.它与您自己的源代码无关.
Intellisense is a vscode feature that provides instant context-aware help when writing code. It has nothing to do with your own sourcecode.
这里有一个很好的解释: vscode intellisense
Here a really good explanation : vscode intellisense
这篇关于vscode中的参考路径是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!