Disabling Amazon Q from testing its code suggestions
To turn off the feature that allows Amazon Q to test its code suggestions in a dev environment, go to
your IDE’s settings and turn off the Amazon Q: Allow Q /dev to run code and test
commands setting. (You might need to choose the Edit in
settings.json link under the setting name, and then set the corresponding JSON
setting to false
to turn off the setting.)
When you turn off this setting:
-
Amazon Q will no longer display the Generate devfile to build code button to you when you run the
/dev
command in your IDE. -
Amazon Q will no longer look for a devfile, launch a dev environment, or test the code suggestions it generates for you.
Note
The ability to enable or disable the use of dev environments is not possible through the Amazon Q Developer console.
For more information about devfiles and testing with Amazon Q, see Testing code suggestions generated by the Amazon Q '/dev' command.