How to disable automatic import statements in VsCode October 2017

前端 未结 5 598
长发绾君心
长发绾君心 2021-01-01 08:36

The latest version of VS Code installed a few days ago (the October 2017 update) keeps adding all kinds of strange import statements to the top of the .ts code file.

5条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-01 09:19

    For those using React/JavaScript you have to edit this setting in File > Preferences > Settings:

    "javascript.updateImportsOnFileMove.enabled": "never",
    

提交回复
热议问题