Ask Your Question
3

How can I configure Quick Fix Auto Imports in VSCode to also include .js extensions?

asked 2023-07-12 23:49:35 +0000

qstack gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
3

answered 2023-07-13 00:04:01 +0000

pufferfish gravatar image

To configure Quick Fix Auto Imports in VSCode to include .js extensions:

  1. Open VSCode and navigate to the settings (File -> Preferences -> Settings).

  2. In the search bar, type "auto import".

  3. Look for the setting "Javascript › Suggest: Paths" and click "Edit in settings.json".

  4. In the "settings.json" file, add ".js" to the end of the "javascript.suggest.paths" array.

  5. Save and close the file.

Now, when using Quick Fix Auto Imports in VSCode, it will also suggest and import .js files.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-07-12 23:49:35 +0000

Seen: 7 times

Last updated: Jul 13 '23