Released: Apr 4, 2024
2024.1 での更新項目
機能
Local full line code completion
- 2024.1 versions of JetBrains IDEs come with full line code completion (FLCC), which is currently available for Java, Kotlin, Python, JavaScript, TypeScript, CSS, PHP, Go, and Ruby. This feature is powered by an advanced deep learning model seamlessly integrated into the IDE. It enhances coding efficiency by predicting and suggesting entire lines of code based on contextual analysis. These suggestions are powered by specialized language models that have been trained explicitly for different languages and frameworks and that run entirely on your local device, ensuring your data remains secure without any need for communication with an external server.
- Full line code completion and JetBrains AI Assistant are seamlessly integrated, and AI Assistant makes FLCC even more powerful with multi-line code completion.
Improved test generation
- Enhanced AI test generation for Java and PHP. You can now find dedicated existing files where tests used to be written. AI Assistant automatically finds a suitable test file, adds new test cases to an existing file, and uses an existing file as a sample to provide the appropriate type/style for tests.
- The test generation feature helps you uncover edge cases and suspicious behavior in seconds, freeing up more time to craft new code. You can now easily generate meaningful tests for code segments, as AI Assistant analyzes both your code and documentation to recommend tests that will provide insights into your code's behavior. To run the tests, you just need to approve the suggestions.
Commit message generation custom prompts
- Improved the AI prompts library with this release. You can now ask the AI Assistant to customize a commit message generation prompt by specifying a different language and choosing the format or the required number of characters.
Improvements in cloud code completion
- You can now easily accept a one-line suggestion by using the ctrl+alt RIGHT shortcut. It's also possible to get the completion in a variety of configuration file types as well as for languages not supported. This feature is disabled by default, you can turn it on in Settings | Tools | AI Assistant | Enable experimental universal inline completion.
- If you want to get completions in the middle of the current line, you can choose to invoke it automatically after hitting the Spacebar. This feature has a debounce delay to avoid interrupting your typing and a filter model to hide less valuable suggestions. To enable it, go to Settings | Tools | AI Assistant | Automatic trigger for current line.
Create files from code snippets
- AI Assistant now has a new functionality that lets you create files from snippets.
- Type some code in the AI Assistant chat.
- Click on Create File from Snippet.
In-editor code generation feature update
- In-editor code generation gives you more control over what the LLM modifies and what it doesn't.
- If invoked on a selection, only this selection will be subject to modifications by the LLM. If invoked on no selection, the generated code will only be inserted at the caret.
- The feature now has a larger code context to increase the quality of the results: for the response improvement, the AI Assistant uses code information not only about the current file used but also from other relevant files in the project.
Improve the quality of generated SQL queries in DataGrip
- Use the new Show Database context AI feature in DataGrip to improve the quality of generated SQL queries by attaching database schema as a chat context. In the Beta version, it's only possible to provide tables with their columns (no views, routines, etc.), and the maximum number of tables is limited to 50.
- Updated the editor's context menu features to include an Explain code option, so you can understand the current schema when invoking from database consoles. AI Assistant can now search for database objects in their project (user consent must be provided in Settings).
AI Assistant availability
- In this release, AI Assistant has been unbundled and is now available in JetBrains IDEs as a separate plugin. This change is driven by the need to offer greater flexibility in decision-making regarding the use of AI-powered technologies, providing you with more control over your preferences and the requirements of your working environments.
- For those using IDE version 2023.3 who update to v2024.1, the AI Assistant plugin will be automatically installed.
- JetBrains AI Assistant is available in the 2024.1 versions of all the commercial JetBrains IDEs and ReSharper, as well as in Fleet, and it works with many of the languages these products support. You can use it as a supplemental feature with a JetBrains AI service subscription.
- Access to the AI service is restricted to the territories where the providers' service is available.