Get code suggestions from Gemini Stay organized with collections Save and categorize content based on your preferences.
Use Gemini to get code suggestions while writing code in theConsole andSources panels. From Chrome 142, this feature is available for all text-based resources for a web page. The priority language for code suggestions is JavaScript.

Availability
To use theAI assistance panel, make sure that you:
Your location (JP) is supported.
- Are at least 18 years old and are in one of the supported locations.
- Are using the latest version of Chrome.
- Are signed into Chrome with your Google Account.
- HaveEnglish (US) selected inSettings >Preferences >Appearance >Language in DevTools.
- Have enabledSettings >AI Innovationsin DevTools.
The feature is available from Chrome 142.
Enable code suggestions
To enable code suggestions, go toDevTools >Settings >AI innovations >Code suggestions.
Accept a suggestion
As you type in the Console or Sources panel, you'll get code suggestions. The suggestions depend on everything you have typed in the panel so far. SelectTab to accept orEsc to reject a suggestion.
See also
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-11-07 UTC.