如何使 JavaScript 和 CSS 文件的 Intellisense 快速信息出现在 Visual Studio 2017 中?

发布于 2025-01-18 11:17:58 字数 1178 浏览 2 评论 0原文

在Microsoft Visual Studio Professional 2017中,当我编辑JavaScript或CSS文件时,将不会出现成员,对象和其他关键字的Intellisense快速信息。但是,当我在Visual Studio代码1.66.0中打开相同的文件时,Intellisense快速信息将正确显示。这导致我无法解释JS和CSS函数和关键字的重要性,因此给我带来了不便。为什么会发生这种情况?如何使Visual Studio 2017中的JS和CSS文件正确显示快速信息?关于此事的任何帮助都得到了极大的称赞。

VS

在下面的屏幕截图:

代码中显示Response.cookie()方法JS文件中的快速信息

Visual Studio 2017未显示同一JS文件的快速信息

VS代码显示background-Attachment属性的快速信息

Visual Studio 2017未显示同一CSS文件的快速信息

In Microsoft Visual Studio Professional 2017, when I edit a JavaScript or CSS file, the Intellisense Quick Info for Members, Objects and other keywords don't appear. However, when I open the same files in Visual Studio Code 1.66.0, Intellisense Quick Info is shown properly. This results in me failing to interpret the significance of JS and CSS functions and keywords, hence, causing a ream of inconvenience to me. Why is this happening and how can I make Quick Info appear properly for JS and CSS files in Visual Studio 2017? Any help on this matter is greatly complimented.

Regards

Please take a look at the screenshots below:

VS Code showing Quick Info for response.cookie() method in JS file
VS Code showing Quick Info for JS file

Visual Studio 2017 not showing Quick Info for the same JS file
Visual Studio 2017 not showing Quick Info for the same JS file

VS Code showing Quick Info for background-attachment property in CSS file
VS Code showing Quick Info for CSS file

Visual Studio 2017 not showing Quick Info for the same CSS file
enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文