我如何在 HTML 中为 JavaScript 启用 Intellisense 是 VSCode? [英] How an I enable Intellisense for JavaScript in HTML is VSCode?

查看:30
本文介绍了我如何在 HTML 中为 JavaScript 启用 Intellisense 是 VSCode?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用 VS Code 来尝试 JavaScript 书的例子,但是没有智能感知,或者至少我不知道如何激活它.

I want to use VS Code to try out the examples of a JavaScript book, but there's no intellisense, or at least I don't know how to activate it.

在 Visual Studio 中,此功能开箱即用:

In Visual Studio this feature works out of the box :

但是在 VS Code 中,我得到的只是一条消息说没有建议"

But in VS Code, all I got is a message saying "There's no suggestions"

我需要做什么才能在 VSCode 中启用智能感知?

What do I need to do to enable the intellisense in VSCode?

谢谢.

推荐答案

目前不支持

JS 智能感知在 HTML 脚本标签中不起作用 - VSCode GitHub 问题 #4369

HTML 中的智能 Javascript 建议Visual Studio Code 更新后文件没有记录器工作 - StackOverflow

这篇关于我如何在 HTML 中为 JavaScript 启用 Intellisense 是 VSCode?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆