20498860

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

  •  
  •   20498860 · Nov 2, 2020 · 2821 views
    This topic created in 2028 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   ·   2832 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 14:54 · PVG 22:54 · LAX 07:54 · JFK 10:54
    ♥ Do have faith in what you're doing.