
The most recent function drop for Android Studio Ladybug is now out there, including in a number of new methods to work together with Gemini.
Gemini Code Transforms can modify, optimize, or add code to an app by right-clicking within the editor and deciding on the Gemini > Generate Code possibility or highlighting code and deciding on Gemini > Remodel Chosen Code. Builders can describe the code they need to make and overview the proposed adjustments earlier than accepting them.
“With Gemini Code Transforms, you possibly can simplify complicated code, carry out particular code transformations, and even generate new features. You can even refine the urged code to iterate on the code ideas with Gemini. It’s an AI coding assistant proper in your editor, serving to you write higher code extra effectively,” Steven Jenkins, product supervisor of Android Studio, wrote in a weblog submit.
Different Gemini options added to the newest model of Android Studio embrace:
- Rename, which suggests acceptable names for single variables, courses, or strategies primarily based on context
- Rethink, which analyzes code and suggests new variable and methodology names throughout a complete file for bigger renaming refactors
- Commit Message, which supplies ideas for commit message primarily based on what modifications had been made
- Generate Documentation, which creates documentation for the chosen code
The most recent launch additionally supplies help for Animation Preview for Put on OS Tiles, which can enable builders to visualise and debug tile animations. Builders can management playback with play, pause, and pace adjustment choices, and examine properties like preliminary/finish states and animation curves.
Put on Well being Providers can be enabled, which supplies a neater and extra simplified strategy to take a look at well being and health apps. Builders can customise parameters for an train, like coronary heart charge, distance, and pace, while not having entry to a bodily machine or to carry out the exercise themselves.
Android Studio Ladybug additionally now gives the App Hyperlinks Assistant, which serves legitimate JSON syntax for resolving damaged deep hyperlinks in an app. “You possibly can overview the JSON file after which add it to your web site, resolving points shortly. This eliminates the handbook creation of the JSON file, saving you effort and time. The instrument additionally means that you can evaluate current JSON information with newly generated ones to simply establish any discrepancies,” Jenkins wrote.
Different options on this launch embrace enhanced lint warnings for public SDKs from the Google Play SDK Index and Google Play SDK Console, help for IntelliJ 2024.2, and over 770 bug fixes.
