Code editor
This section covers usage and features of the code editor.
In DataGrip, code editor allows you to write and edit SQL queries in query files, SQL files, scratch files, and when you are working with database object definitions.
Also, depending on the IDE settings and installed plugins, you can edit files in other formats, such as XML, JSON, YAML, and so on.




To learn how to run queries, refer to the following chapters and topics:
For full information about how to work with query files, user files, and scratches, refer to the File management section.
29 October 2025