As a developer, the constant task of writing code can become tiresome. To alleviate this, having a personal assistant that aids in writing code more efficiently becomes essential. This is where AI-based coding tools like GitHub Copilot and Amazon CodeWhisperer come into play.
GitHub Copilot is an excellent tool, but it comes with a paid subscription. On the other hand, its alternative, Amazon CodeWhisperer, offers two tiers: "Individual tier" and "Professional tier," with the "Individual tier" being free.
Today, we'll walk through the steps of installing the free version of Amazon CodeWhisperer in PhpStorm. Here are the steps:
In PhpStorm, click on the top-left menu PhpStorm, and then select Settings.
Choose the Marketplace in the Plugins section.
Search for AWS Toolkit and click Install.
After successful installation, restart the IDE when prompted.
After restarting, click on the AWS icon in the top-left panel, navigate to Developer Tools, and double-click Start.
A window will appear; select the first option and click the Connect button.
In the window, a code will be displayed. Click on Proceed to Browser.
A new window should open in a browser. Confirm that it's displaying the same code as shown in the previous window and then click Confirm and Continue.
You'll be prompted to create an AWS Builder Account.
Follow the steps to create your account. Once the account is successfully created, you'll be asked to allow AWS Toolkit for JetBrains to access your data. Click Allow.
Upon success, you'll see the following message:
Back in PhpStorm, you'll see a message asking you to stay connected to CodeWhisperer. Click Yes.
You can confirm CodeWhisperer status by clicking on the AWS icon, then Developer Tools, and you should see the following message: