20498860

我已经关掉了自动 imoport,为什么 VSCODE 还是会自动引入一些方法?

  •  
  •   20498860 · Nov 2, 2020 · 2851 views
    This topic created in 2044 days ago, the information mentioned may be changed or developed.

    例如这样的: import { formatTime } from '../../../../utils'

    我明明没有用到这个方法,我也设置了不自动引入

    "typescript.preferences.includePackageJsonAutoImports": "off",
    "javascript.suggest.autoImports": false,
    

    苦恼,老是给我引入一些 JQ 的方法

    2 replies    2020-11-03 10:04:38 +08:00
    xingguang
        1
    xingguang  
       Nov 3, 2020
    可能是用了插件,有一个插件会自动引入的
    importcode
        2
    importcode  
       Nov 3, 2020
    大兄弟,imoport 打错了, 把插件禁用后 ,测试一下
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3157 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 13:22 · PVG 21:22 · LAX 06:22 · JFK 09:22
    ♥ Do have faith in what you're doing.