Workspace tool window
The Workspace tool window lets you take a look at your workspace directory from various viewpoints and perform different tasks such as creating new items (directories, files, classes, and so on), opening files in the editor, navigating to the necessary code fragments, and more.
See the related procedures in Set up a working environment.
Most of the functions in this tool window are accessed as context menu commands in the content pane and via associated shortcuts.
Also, the view contains the Scratches and Consoles folder that lets you manage created scratch files, database consoles, and extension scripts.
Views
The tool window has several views:
Workspace view. This view displays all the workspace directory items along with their dependencies (SDKs and libraries). The emphasis is on the directory structure, although the packages are also shown.
Scopes views (Project Files, Open Files, and so on). These views display the contents of the predefined and user-defined scopes. In other respects, depending on the currently selected view options, a scope view may resemble the Project view.
To switch between views, press Alt+Right / Alt+Left or select the desired view from the list on the title bar. You can also display each view in a separate tab: click and disable the Group Tabs option.
To configure a view, use the corresponding options in the title bar context menu. The necessary options can also be accessed by clicking on the title bar.
Preview files
There are two ways to preview files without opening each one in a separate tab:
Use the file preview popup — select a file in the Workspace tool window and press Space.
Enable the preview tab — click and select Enable Preview Tab.
Show tree indent guides
In the Workspace tool window, you can display vertical lines that mark indent levels and help you better understand the hierarchy of the components in your directory. To display these lines, enable Show tree indent guides on the Appearance and Behavior | Appearance page of the IDE settings Ctrl+Alt+S.
Title bar context menu
The context menu that appears by right-clicking the title bar or clicking , provides settings for workspace directory views, viewing modes, as well as for switching between the views, resizing the tool window, and more .
The following table lists and briefly explains the available commands and options.
Item | Shortcut | Description |
---|---|---|
Select Next View or Tab | Alt+Right | Use this option to switch between different views. |
Select Previous View or Tab | Alt+Left | Use this option to switch between different views. |
Show List of Views or Tabs | Alt+Down | Use this option to switch between different views. |
Tree Appearance | ||
Show Members | If this option is on, the files in the tree that contain classes turn into nodes. When such node is unfolded, the contained classes with their fields, methods, and other members of the selected item are shown. | |
Show Excluded Files | This option is available only in the Project view. Turn this option on or off to show or hide excluded folders and files. | |
Show Scratches and Consoles | Hide or display the Scratches and Consoles node. This node contains your scratch files and query consoles. | |
Sort by Type | If the option is off, the items (files, classes, and so on) are sorted alphabetically. If the option is on, the files are sorted by their extensions. | |
Folders Always on Top | If the option is on, folders are shown above the files. Otherwise, all items are sorted alphabetically, and files and folders appear intermixed. | |
Enable Preview Tab | Enable the preview tab that allows you to view files in a single tab one by one without opening each file in a new tab. | |
Open Files with Single Click | If this option is on, DataSpell will automatically open the selected item in the editor. Otherwise, you need to double-click items to open them. Note that you cannot disable this option if you enable the preview tab. | |
Always Select Opened File | If this option is on, DataSpell automatically locates documents that you open in the editor in the current view of this window. | |
File Nesting | Opens the File nesting dialog where you can configure presentation of files that have same names but different extensions. | |
Group Tabs | If this option is on, there is a list in the left-hand part of the title bar from which you can select the necessary view. If this option is off, the views are represented by tabs which appear in the left-hand part of the title bar. | |
View Mode | This option lets you control general appearance and behavior of the tool window. | |
Move to | To associate the tool window with a different tool window bar, select this command, and then select the destination tool window bar (Top, Left, Bottom or Right). | |
Resize | To resize the tool window by moving one of its borders, select this command, and then select the necessary Stretch to option. Note that this command is not available for the floating mode. | |
Remove from Sidebar | This command hides the tool window, removes the associated tool window button from the tool window bar and removes the tool window from the quick access menu ( or ). To open the tool window again (and restore the associated features), use the main menu: or press Alt+1. | |
Help | This command opens the description of the Project tool window in the DataSpell online help. |
File colors
Files that belong to different scopes (production files or test files, for example) can be highlighted in different colors in the Workspace tool window, search results, and editor tabs.
To each scope, you can assign its own color. For more information, refer to Associate scopes with colors.