1. Select a code fragment and right-click it to open the context menu. (AutoDev Chat)
  2. Select AI Actions

Chat code completion

Explain this

Refactor this

In #129, we provide more information for you to refactor code.

Chat with this

Write test for this

Generate test data (APIs)

support language: Java

  1. right-click the function/method and selection Generate test data (APIs)

AutoDev with analysis input and output data structure

@ApiOperation(value = "Create a new blog")
public BlogPost createBlog(@RequestBody CreateBlogRequest request) {
    CreateBlogResponse response = new CreateBlogResponse();
    BlogPost blogPost = new BlogPost();
    BeanUtils.copyProperties(request, blogPost);
    BlogPost createdBlog = blogService.createBlog(blogPost);
    BeanUtils.copyProperties(createdBlog, response);
    return createdBlog;

convert it to uml

//input Classes: 
class CreateBlogRequest {
  title: String
  content: String
  User: User

class User {
  id: Long
  name: String

//output Class: 
class BlogPost {
  id: Long
  title: String
  content: String
  author: String

AI will gen to

  "title": "Sample Blog",
  "content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
  "User": {
    "id": 1,
    "name": "John Doe"