Normally, in Visual Studio Code, if you type in a variable or function that isn't imported, then Visual Studio Code will auto-correct it, if you select it.
For example, if I am typing half the name of a function, it will infer that I want a function, and when I hit Tab/Enter, it will autocomplete it, and import it.
See the GIF below for a visual example.

Normally, in Visual Studio Code, if you type in a variable or function that isn't imported, then Visual Studio Code will auto-correct it, if you select it.
For example, if I am typing half the name of a function, it will infer that I want a function, and when I hit Tab/Enter, it will autocomplete it, and import it.
See the GIF below for a visual example.

Create a clone of the Rust shortcut
Since there is already a shortcut that does what you want (albeit in a different language), you may be able to create a new shortcut based on the existing one.
First: open your keyboard shortcuts, and do a "reverse-shortcut" search for Ctrl + .. There's an icon near the right side of the search input that switches the search behavior to this:

You may find multiple matches; study them to identify the Rust import command that you like. In particular, take note of the "Source" column: if Source is "Extension," that means you're getting the Rust behavior from an extension, and you may need to find (or create) a similar extension that targets JS/TS. (I suspect you will, because I don't have any commands related to imports in my VSCode.) The next step requires that you copy the value of the Where column, so do that now.
Second: look at the "Command" column for the name given to this behavior. If the name is specific to Rust, do a new search for a similar command that doesn't target Rust. If there is such a command, you just need to configure it to run when you like: edit that shortcut and paste the "When" value from behavior; this may require a hand-edit if the When from the Rust command mentions anything specific about Rust (e.g. if it includes editorLangId == 'markdown', change that to 'javascript' and add alternative for typescript as well).
If there is no auto-import command that is language agnostic, and none that is specific to JS/TS (again, I don't see one in my VSC), you will have to rely on the Intellisense-based option, or find (or create) an extension that does this. Creating an extension is a whole other topic.
vscode extension for auto import ?
vscode extension for auto import ?
typescript - Visual Studio Code Automatic Imports - Stack Overflow
Is there an option or extension for VS Code to quickly import a file relative to the file I'm currently working on?
Videos
So a while ago, I remember having a shortcut that would suggest auto imports for files. For instance, I'm a web dev and I use React as my main framework. I remember back when I started, if I wanted to auto import a file, I would type the file's name name and VS would suggest the right imports.
However, I know there is a shortcut that does just that. On PC I think it's Ctrl + space. I'm on macOS 12.1 and I have my Cmd + space set to spotlight/Alfred (and I need it).
What is the shortcut's name so I can change the shortcut or just, what is the actual shortcut ?
Thanks!!
2018 now. You don't need any extensions for auto-imports in Javascript (as long as you have checkjs: true in your jsconfig.json file) and TypeScript.
There are two types of auto imports: the add missing import quick fix which shows up as a lightbulb on errors:

And the auto import suggestions. These show up a suggestion items as you type. Or you can select text and press Ctrl + Space to bring up a list of suggestions. Accepting an auto import suggestion automatically adds the import at the top of the file

Both should work out of the box with JavaScript and TypeScript. If auto imports still do not work for you, please open an issue
I got this working by installing the various plugins below.
Most of the time things just import by themselves as soon as I type the class name. Alternatively, a lightbulb appears that you can click on. Or you can push F1, and type "import..." and there are various options there too. I kinda use all of them. Also F1 Implement for implementing an interface is helpful, but doesn't always work.
List of Plugins
- npm Intellisense
- ngrx for Angular 2 Snippets
- TypeScript Toolbox
- npm
- TsTools
- Angular Snippets (Version 9)
- Types auto installer
- Debugger for Chrome
- TypeScript Importer
- TypeScript Hero
- vscode-icons
- Add Angular Files
Screenshot of Extensions

*click for full resolution
When I'm working on a project with hundreds of files across a lot of folders & sub-folders, it's really annoying when VS Code's auto import doesn't recognize what I'm trying to import and I have to import it manually. For example, if I'm working on src/features/users/account.jsx and I need to import a method from src/utils/userHelpers.js, but VS Code doesn't automatically suggest the method/file I'm trying to import, it's annoying to manually write an import statement and have to count how many directories I need to go down, write out '../' for each, and then write out the rest of the directory path.
It would be really nice if within my VS Code workspace, I could just right click a file in VS Code's Explorer and select an option like "Import to currently open file" to do this all for me. Such that pressing this button figures out the relative path for me and adds "import userHelpers from "../../utils/userHelpers" to the top of the file I'm currently working on. Or even if it could just copy the relative path to my clipboard so I don't have to figure out the relative path myself, that would be really nice.
Does something like this exist for VS Code? If so, how do I use it?