Copilot Tips: Imports

Bobby Galli
Working Dev’s Hero
1 min readAug 10, 2023

Use Copilot Chat to Convert Requires to Imports

GitHub Copilot Tips & Tricks: Imports

Video 🎥

Check out the following YouTube video to learn how to use GitHub Copilot’s Inline Chat to convert require statements to imports.

Convert Requires to Imports with GitHub Copilot Chat

Summary 📝

  1. Install Visual Studio Code Insider’s build.
  2. Install Copilot Chat and Copilot Nightly.
  3. Select the code block you want to convert.
  4. Ask Copilot to convert the require statements into imports.
  5. Follow Working Devs Hero for more tips, tricks, and AI news.

Memorable Quote: Press Command I to bring up inline chat.

Conclusion: By following these steps and utilizing the Visual Studio Code Insider’s build and Copilot Chat and Copilot Nightly, TypeScript developers can easily convert require statements to imports. Stay updated with Working Devs Hero for more valuable insights and information on programming.

Want to Connect?

If you found the information in this tutorial useful please subscribe on Medium, follow @workingdevshero on Twitter, and/or subscribe to the Working Dev's Hero YouTube channel.

--

--

Bobby Galli
Working Dev’s Hero

Software developer at BugSplat. Big friendly giant, golf ball whacker guy, goofball, lover of tacos.