I found a new terminal plugin called Fig.io that gives me super powers! It has full autocomplete and IntelliSense just like inside of VS Code. This plugin is completely free (Mac only though), so you can head to the website now to download and install. Let's check it out.
Fig.io In Action
The install process should be pretty straightforward, and after you have it set up, you should immediately see it in action. For example, if I start to run a
cd command in my terminal, you can see it populates the different folder options that I can navigate to. I'm running this command from within the source code for the Compressed.fm website. It's a Next.js project, so you can see the appropriate directories showing up.
Adding IntelliSense for built-in terminal commands seems pretty obvious, so let's try something a little different. Let's try working with Git.
After typing the word
git, it populates with all of the potential commands that I can run. If you notice, it also shows me what the different parameters are that I can pass to each command. Pretty neat right?
Let's try something a little more obscure. I started working at PlanetScale (a managed MySQL company built for scale and Serverless) a few months ago, and I've worked with our CLI a lot since I started. Surely, Fig.io won't know how to work with that...right? WRONG! It works flawlessly!
Lastly, what about integration with NPM commands? What if you want IntelliSense for packages that you want to install so you don't have to type the whole package name? Yep, got that too!
Just by typing
npm install react, it autopopulates the most popular React libraries!