# Query Files and Consoles

This topic describes the settings you can configure for your query files.

For more information about query files, refer to  the [Query files](query-files.html) topic.

## Query Files Presentation

Show data source name in file tree
: If enabled, the name of a data source attached to a query file are displayed in the   Project tool window  (`Alt+1` (Windows), `⌘ 1` (macOS), `⌘ 1` (IntelliJ IDEA Classic (macOS)), `⌘ 1` (macOS System Shortcuts), `Alt+1` (XWin), `Alt+1` (GNOME), `Alt+1` (KDE), `Alt+1` (Emacs), `Alt+1` (Sublime Text), `⌘ 1` (Sublime Text (macOS)), `Ctrl+1` (NetBeans), `Ctrl+Alt+L` (Visual Studio), `⌘ ⌥ L` (Visual Studio (macOS)), `Alt+1` (Eclipse), `Alt+1` (Eclipse (macOS)))  file tree.

Use attached search path color in file tree
: If enabled, the color of an attached search path is applied to a query file in the   Project tool window  (`Alt+1` (Windows), `⌘ 1` (macOS), `⌘ 1` (IntelliJ IDEA Classic (macOS)), `⌘ 1` (macOS System Shortcuts), `Alt+1` (XWin), `Alt+1` (GNOME), `Alt+1` (KDE), `Alt+1` (Emacs), `Alt+1` (Sublime Text), `⌘ 1` (Sublime Text (macOS)), `Ctrl+1` (NetBeans), `Ctrl+Alt+L` (Visual Studio), `⌘ ⌥ L` (Visual Studio (macOS)), `Alt+1` (Eclipse), `Alt+1` (Eclipse (macOS)))  file tree.

Use attached data source icon for query files
: If enabled, a query file is displayed with the icon of an attached data source in the   Project tool window  (`Alt+1` (Windows), `⌘ 1` (macOS), `⌘ 1` (IntelliJ IDEA Classic (macOS)), `⌘ 1` (macOS System Shortcuts), `Alt+1` (XWin), `Alt+1` (GNOME), `Alt+1` (KDE), `Alt+1` (Emacs), `Alt+1` (Sublime Text), `⌘ 1` (Sublime Text (macOS)), `Ctrl+1` (NetBeans), `Ctrl+Alt+L` (Visual Studio), `⌘ ⌥ L` (Visual Studio (macOS)), `Alt+1` (Eclipse), `Alt+1` (Eclipse (macOS)))  file tree.

## Query Consoles

Default file name
: The default file name assigned to query consoles when they are created. For example, if the value is `console`, new query console file names are `console.sql`, `console_1.sql`, `console_2.sql`, and so on.

## Editor Tab Display Names

Use these settings to customize how query console names are displayed in editor tab headers.

Template
: Defines the template IntelliJ IDEA uses to customize the names.

$NAME$, $DATASOURCE$, and so on
: Variables to use within the template.

Preview
: Preview of the custom name.

Use this template for query files
: Enables the template for query file names in editor tab headers, too.

