【问题标题】:Auto Import Visual Studio Code not working in jsx自动导入 Visual Studio 代码在 jsx 中不起作用
【发布时间】:2021-09-06 20:28:33
【问题描述】:

知道如何在jsx 中启用自动导入建议吗?

这很奇怪,因为如果我在 jsx 之外输入,它会给我自动导入建议。

我没有安装任何 sn-ps 或 Auto Import 扩展,或 Visual Studio IntelliCode

但即使我安装了它们,也无济于事。

【问题讨论】:

    标签: visual-studio-code autocomplete jsx auto-import


    【解决方案1】:

    这个问题:Auto-imports from within jsx don't work 显然会在 vscode v1.58 中修复。

    https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_58.md#typescript-435

    TypeScript 4.3.5

    我们现在捆绑了 TS 4.3.5。这个小更新修复了一些重要的错误, 包括在 JSX 中不起作用的自动导入。

    【讨论】:

    • 感谢您的帮助
    猜你喜欢
    • 2016-11-07
    • 1970-01-01
    • 2016-06-17
    • 1970-01-01
    • 1970-01-01
    • 2019-06-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多