{"id":688400,"date":"2026-03-26T18:38:16","date_gmt":"2026-03-26T17:38:16","guid":{"rendered":"https:\/\/blog.jetbrains.com\/?post_type=datagrip&#038;p=688400"},"modified":"2026-03-27T14:32:38","modified_gmt":"2026-03-27T13:32:38","slug":"datagrip-2026-1-redesigned-query-files-data-source-templates-in-your-jetbrains-account-ai-agents-in-the-ai-chat-explain-plan-flow-enhancements-and-more","status":"publish","type":"datagrip","link":"https:\/\/blog.jetbrains.com\/en\/datagrip\/2026\/03\/26\/datagrip-2026-1-redesigned-query-files-data-source-templates-in-your-jetbrains-account-ai-agents-in-the-ai-chat-explain-plan-flow-enhancements-and-more","title":{"rendered":"DataGrip 2026.1: AI Agents in the AI Chat, Redesigned Query Files, Data Source Templates in Your JetBrains Account, Explain Plan Flow Enhancements, and More!"},"content":{"rendered":"\n<p>DataGrip 2026.1, the first major update of the year, is here! Let\u2019s take a look at what\u2019s inside.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1280\" height=\"720\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2026\/03\/DG-releases-BlogFeatured-1280x720-1.png\" alt=\"\" class=\"wp-image-692809\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-center\"><a href=\"https:\/\/www.jetbrains.com\/datagrip\/download\/\" target=\"_blank\" rel=\"noreferrer noopener\">Download DataGrip 2026.1<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Query files and consoles<\/h2>\n\n\n\n<p>In this release, we are redesigning the flow for working with query files side by side with query consoles. This way, you can use either or both of them, depending on your tasks and workflow. We have implemented a new way to create a query file, allowing you to define the file name and location yourself. By default, the file is created in the current project directory and associated with the project.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1270\" height=\"841\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2026\/03\/dg_20261_query_files_create_new.png\" alt=\"\" class=\"wp-image-685914\"\/><\/figure>\n\n\n\n<p>Next, all query files attached to a data source are displayed under the <em>Query Files<\/em> folder in the database explorer. This simplifies navigation and helps you focus on a data source\u2019s context.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1270\" height=\"951\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2026\/03\/dg_20261_query_files_folder.png\" alt=\"\" class=\"wp-image-685925\"\/><\/figure>\n\n\n\n<p>Speaking of focusing and making the UI more informative, we have implemented several display settings located in the IDE <em>Settings<\/em> dialog under <em>Database <\/em>| <em>Query Execution<\/em> | <em>Query Files<\/em>. You can use these settings to make sure you have query file details shown right where you need them.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1270\" height=\"674\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2026\/03\/dg_20261_query_files_settings.png\" alt=\"\" class=\"wp-image-685936\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">AI<\/h2>\n\n\n\n<p>You can create a file from a code snippet suggested by AI Assistant when chatting with it in the <em>AI Chat<\/em> tool window. Previously, the created file wouldn\u2019t have a data source attached or a SQL dialect defined. Now, if you provide any context about the database you\u2019re working with, DataGrip will attach the data source you mention and set the SQL dialect for the new file automatically. Also, when you ask AI Assistant questions about a SQL file that already has a data source attached, the IDE will attach that same data source to the newly created file.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1270\" height=\"1341\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2026\/03\/dg_20261_aia_attached_context_02.png\" alt=\"\" class=\"wp-image-685815\"\/><\/figure>\n\n\n\n<p>In addition, you can now work with AI agents in the <em>AI Chat<\/em> tool window. Currently, DataGrip supports Claude Agent and Codex. So, if your task requires assistance from a certain agent, you can work with it right in the IDE.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"475\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2026\/03\/image-45.png\" alt=\"\" class=\"wp-image-693502\"\/><\/figure>\n\n\n\n<p>Additionally, database-specific capabilities have been implemented for the MCP server. With this enhancement, built-in AI agents and third-party tools can work with databases in a more structured way. For example, executing and cancelling running SQL queries is possible now, as is obtaining connection configurations and testing them. Also, to ensure security, four levels of user consent for data and schema access are required by default.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Connectivity<\/h2>\n\n\n\n<p>You can now reuse your data source settings by creating data source templates. The templates are stored in your <a href=\"https:\/\/sales.jetbrains.com\/hc\/en-gb\/articles\/208459005-What-is-JetBrains-Account\" target=\"_blank\" rel=\"noopener\">JetBrains Account<\/a> and include settings from the <em>General<\/em> and <em>Advanced<\/em> tabs of the <em>Data Source and Drivers<\/em> dialog, but exclude your database credentials. If you need to reuse some data source settings in another IDE in which you are signed in to your account, you can simply use a template. Just open the template list in the <em>Data Source Templates<\/em> tab of the <em>Data Sources and Drivers<\/em> dialog, select the one you need, and create a data source from it.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1270\" height=\"1052\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2026\/03\/dg_20261_connectivity_templates_tab-1.png\" alt=\"\" class=\"wp-image-692093\"\/><\/figure>\n\n\n\n<p>We\u2019ve also added support for PostgreSQL 18, including <code>OLD<\/code> and  <code>NEW<\/code> resolution in <code>RETURNING<\/code> clauses, <code>WITHOUT OVERLAPS<\/code> in primary and unique constraints, and other newly introduced keywords and commands.<\/p>\n\n\n\n<p>Finally, the <em>General <\/em>tab of the <em>Data Sources and Drivers<\/em> dialog has also received a few improvements. First, we\u2019ve turned the <em>Data Sources<\/em>, <em>Drivers<\/em>, and other sections into the main tabs that you can see on the left-hand side. Next, the <em>Comment<\/em> field is hidden by default and only appears after you click <em>Add Comment<\/em> and add one. The <em>Driver<\/em> dropdown now informs you if a driver has not been downloaded, in which case a <em>Download<\/em> button appears next to the dropdown. Also, the <em>Connection type<\/em> options are displayed as tabs if fewer than three options are available. And finally, we have removed the <em>Create DDL Mapping<\/em> button from this tab.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1270\" height=\"1052\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2026\/03\/dg_20261_connectivity_data_source_settings_dialog-1.png\" alt=\"\" class=\"wp-image-692105\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><em>Explain Plan<\/em> UI and UX improvements<\/h2>\n\n\n\n<p>Now you have a more informative tab for working with query execution plans in the <em>Services<\/em> tool window. The tab is now called <em>Query Plan<\/em> and contains sub-tabs for the <em>Total Cost<\/em> and <em>Startup Cost<\/em> flame graphs.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1270\" height=\"934\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2026\/03\/dg_20261_explain_plan_02.png\" alt=\"\" class=\"wp-image-685881\"\/><\/figure>\n\n\n\n<p>In the <em>Operations Tree<\/em> tab with the plan, you can find detailed information for each row in a separate panel on the right-hand side of the tab. If there\u2019s a table name in one of the cells, quick documentation for the table is available in a popup.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1270\" height=\"632\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2026\/03\/dg_20261_explain_plan_03.png\" alt=\"\" class=\"wp-image-685892\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Code editor<\/h2>\n\n\n\n<p>It is now easier to suppress the resolve inspection for back label references, as we have added it to the list of intention actions. You can now toggle this option under the <em>Enable option \u201cSuppress for back label references\u201d<\/em> intention action.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1270\" height=\"629\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2026\/03\/dg_20261_code_editor_suppress_inspection_02.png\" alt=\"\" class=\"wp-image-685848\"\/><\/figure>\n\n\n\n<p>Executing a chunk of code is easier now, too \u2013 even when DataGrip isn\u2019t parsing it properly. Just select the chunk, right-click it, and select <em>Execute Selection as Single Statement<\/em>.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1270\" height=\"1309\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2026\/03\/dg_20261_code_editor_execute_context_menu_action.png\" alt=\"\" class=\"wp-image-685826\"\/><\/figure>\n\n\n\n<p>The code editor has also been improved with new caret movement animation modes: <em>Snappy<\/em> and <em>Gliding<\/em>. We hope these modes improve your typing experience and make it more enjoyable. Our team developed the first mode, <em>Snappy<\/em>, to account for how different animations might feel to different people.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2026\/03\/dg_20261_caret_animation_snappy.mp4\"><\/video><\/figure>\n\n\n\n<p>The other new mode, <em>Gliding<\/em>, is similar to the ones you see in other popular text editors.<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2026\/03\/dg_20261_caret_animation_gliding.mp4\"><\/video><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Working with data<\/h2>\n\n\n\n<p>For <a href=\"https:\/\/www.jetbrains.com\/help\/datagrip\/2025.3\/microsoft-sql-server.html\" target=\"_blank\" rel=\"noopener\">Microsoft SQL Server<\/a>, we\u2019ve introduced support for JSON indexes. You can work with them in code generation and also use these indexes in the <a href=\"https:\/\/www.jetbrains.com\/help\/datagrip\/2025.3\/create-and-modify-dialogs.html\" target=\"_blank\" rel=\"noopener\"><em>Create<\/em> and <em>Modify<\/em> dialogs<\/a>.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1258\" height=\"1372\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2026\/03\/dg_20261_dadta_json_indexes.png\" alt=\"\" class=\"wp-image-685870\"\/><\/figure>\n\n\n\n<p>Additionally, we have moved the <em>Show Geo Viewer<\/em> button to the toolbar to make it easier to find.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2026\/03\/image-26.png\" alt=\"\" class=\"wp-image-688493\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Working with files<\/h2>\n\n\n\n<p>Now, you can choose how <em>Delete<\/em> actions behave. The IDE can either move a file to the bin or delete it permanently. To define this behavior, go to the IDE <em>Settings<\/em> dialog, navigate to <em>Appearance &amp; Behavior<\/em> | <em>System Settings<\/em>, and toggle the <em>Move files to the bin instead of deleting permanently<\/em> setting. The setting is enabled by default.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1258\" height=\"976\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2026\/03\/dg_20261_files_delete_files_setting.png\" alt=\"\" class=\"wp-image-685903\"\/><\/figure>\n\n\n\n<p>If you\u2019re interested in upgrading to DataGrip 2026.1, or if you have any questions or suggestions, here are a few links you might find useful:<\/p>\n\n\n\n<ul>\n<li><a href=\"https:\/\/www.jetbrains.com\/datagrip\/download\/\" target=\"_blank\" rel=\"noreferrer noopener\">Download DataGrip 2026.1<\/a>.<\/li>\n\n\n\n<li>Visit our&nbsp;<a href=\"https:\/\/www.jetbrains.com\/datagrip\/whatsnew\/\" target=\"_blank\" rel=\"noreferrer noopener\">What\u2019s New page<\/a>&nbsp;for the full list of improvements.<\/li>\n\n\n\n<li>Contact us on&nbsp;<a href=\"https:\/\/twitter.com\/datagrip\" target=\"_blank\" rel=\"noreferrer noopener\">X<\/a>.<\/li>\n\n\n\n<li>Report any bugs to&nbsp;<a href=\"https:\/\/youtrack.jetbrains.com\/issues\/DBE\" target=\"_blank\" rel=\"noreferrer noopener\">our issue tracker<\/a><\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<p>The DataGrip team<\/p>\n","protected":false},"author":1407,"featured_media":692820,"comment_status":"closed","ping_status":"closed","template":"","categories":[],"tags":[],"cross-post-tag":[],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.jetbrains.com\/en\/wp-json\/wp\/v2\/datagrip\/688400"}],"collection":[{"href":"https:\/\/blog.jetbrains.com\/en\/wp-json\/wp\/v2\/datagrip"}],"about":[{"href":"https:\/\/blog.jetbrains.com\/en\/wp-json\/wp\/v2\/types\/datagrip"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/en\/wp-json\/wp\/v2\/users\/1407"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/en\/wp-json\/wp\/v2\/comments?post=688400"}],"version-history":[{"count":10,"href":"https:\/\/blog.jetbrains.com\/en\/wp-json\/wp\/v2\/datagrip\/688400\/revisions"}],"predecessor-version":[{"id":694300,"href":"https:\/\/blog.jetbrains.com\/en\/wp-json\/wp\/v2\/datagrip\/688400\/revisions\/694300"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/en\/wp-json\/wp\/v2\/media\/692820"}],"wp:attachment":[{"href":"https:\/\/blog.jetbrains.com\/en\/wp-json\/wp\/v2\/media?parent=688400"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/en\/wp-json\/wp\/v2\/categories?post=688400"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/en\/wp-json\/wp\/v2\/tags?post=688400"},{"taxonomy":"cross-post-tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/en\/wp-json\/wp\/v2\/cross-post-tag?post=688400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}