DataSpell 2023.2 Help

Workspace tool window

The Workspace tool window lets you take a look at your project or 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 project or workspace directory items along with their dependencies (SDKs and libraries). The emphasis is on the directory structure, although the packages are also shown.

  • Scope 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+ArrowRight / Alt+ArrowLeft or select the desired view from the list on the title bar.

You can also display each view in a separate tab: click Settings 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 Settings 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 the Options button 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.

  1. Go to Settings | Appearance and Behavior | Appearance.

  2. Set the Show tree indent guides checkbox.

Title bar context menu

The context menu that appears by right-clicking the title bar or clicking Options button (the Options icon) provides settings for project or 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+ArrowRight

Use this option to switch between different views.

Select Previous View or Tab

Alt+ArrowLeft

Use this option to switch between different views.

Show List of Views or Tabs

Alt+ArrowDown

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 Name

Sort files alphabetically by their names.

The option does not affect the order of folders, they are always sorted alphabetically.

Sort by Type

Sort files by their extensions.

The option does not affect the order of folders, they are always sorted alphabetically.

Sort by Modification Time (Newest First/Oldest First)

Sort files by the time they were modified. To display this information, select Window | Appearance | Details in Tree View from the main menu.

The option does not affect the order of folders, they are always sorted alphabetically.

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

Open an item in the editor by clicking it in the Workspace tool window once. Otherwise, you need to double-click items to open them.

Note that you cannot disable this option if you enable the preview tab.

Open Directories with Single Click

Expand and collapse directories in the Workspace tool window by clicking them once. Otherwise, you need to double-click a directory to open it or use the Expand icon next to the directory's name.

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.

show views as tabs

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). For full information, refer to the Move tool windows chapter.

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 (tb shown or tb hidden).

To open the tool window again (and restore the associated features), use the main menu: Window | Tool Windows | <Window Name> or press Alt+1.

Help

This command opens the description of the Workspace 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.

Last modified: 11 September 2023